-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up auto for versioning/release management (#749)
* build(dependencies): add auto plugin for automatic releases/changelogs * build(auto): configure auto release pipeline * docs(publish): document the updated release process
- Loading branch information
1 parent
3f0012e
commit 8d15fe1
Showing
7 changed files
with
1,169 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"plugins": [ | ||
"npm", | ||
"conventional-commits", | ||
"first-time-contributor", | ||
"released" | ||
], | ||
"baseBranch": "stable", | ||
"prereleaseBranches": [ | ||
"next" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,36 +2,39 @@ name: Publish | |
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
branches-ignore: | ||
# No canary deploys for branches opened by dependabot | ||
- 'dependabot/**' | ||
|
||
jobs: | ||
publish: | ||
name: Publish to NPM | ||
name: Make a release and publish to NPM | ||
|
||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare repository | ||
run: git fetch --unshallow --tags | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
registry-url: "https://registry.npmjs.org" | ||
node-version: "15" | ||
|
||
- name: Install Node dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
- name: Publish to NPM | ||
run: npm publish | ||
|
||
# don't use yarn run to avoid using yarnpkg registry | ||
- name: Create release | ||
run: | | ||
npm run release | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ name: Test | |
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
pull_request: | ||
branches: | ||
- master | ||
- next | ||
|
||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.