Skip to content

Commit

Permalink
🚀 add initial automated release action
Browse files Browse the repository at this point in the history
  • Loading branch information
blakek committed Nov 8, 2021
1 parent a7f31ad commit 8d82dae
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: release

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install
- run: yarn test
- name: Publish if version has been updated
- uses: pascalgn/[email protected]
with:
tag_name: 'v%s'
tag_message: 'v%s'
create_tag: 'true'
commit_pattern: "release (\\S+)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 8d82dae

Please sign in to comment.