Skip to content

Commit

Permalink
feat: automatic release on npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Feb 5, 2022
1 parent ea4cc8d commit 15f8530
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
release:
types:
- published
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing Node.js v16
uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org/'
- run: |
git fetch origin main
git checkout main
- name: Installing dependencies
run: yarn install --frozen-lockfile
- name: Compile source
run: yarn build
- name: Publish source
run: |
npm publish || true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

0 comments on commit 15f8530

Please sign in to comment.