Skip to content

Commit

Permalink
Run release workflow on main
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed May 12, 2022
1 parent 96abdc6 commit 33a58be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .changeset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with mono-repos or single package repos to help you verion and release your code. You can find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in [our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)
We have a quick list of common questions to get you started engaging with this project in [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
8 changes: 5 additions & 3 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"$schema": "https://unpkg.com/@changesets/config@0.3.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "mitchellhamilton/magical-types" }
{
"repo": "Thinkmill/magical-types"
}
],
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "master"
}
"baseBranch": "main"
}
16 changes: 7 additions & 9 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@ name: Release
on:
push:
branches:
- master
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
fetch-depth: 0
uses: actions/checkout@v3

- name: Setup Node.js 10.x
uses: actions/setup-node@master
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
version: 10.x
node-version: 16

- name: Install Yarn
run: npm install --global yarn
Expand All @@ -27,9 +25,9 @@ jobs:
run: yarn

- name: "Create Pull Request or Publish to npm"
uses: changesets/action@master
uses: changesets/action@v1
with:
publish: yarn release --otp=1
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 33a58be

Please sign in to comment.