-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 ci: Created package release workflow
- Loading branch information
Showing
3 changed files
with
57 additions
and
4 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,36 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [ master, staging ] | ||
|
||
jobs: | ||
release: | ||
name: Build & Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 15 | ||
# We must indicate the Github Package Registry, as our config packages | ||
# are there (and also NPM). Frustratingly, NPM prefers the GPR over | ||
# NPM - even when we indicate that we want to pull from NPM instead of | ||
# the GPR. | ||
registry-url: https://npm.pkg.github.com | ||
|
||
- run: npm ci | ||
env: | ||
# Provide a "password" to GPR so that we can pull our packages. | ||
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
- run: npm run build | ||
|
||
- run: npx semantic-release | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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