Skip to content

Commit

Permalink
feat: npm publish main if package version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrees committed Mar 28, 2022
1 parent 52c8b8f commit 7d47004
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to NPM
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install -g pnpm
- run: pnpm install
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: true

0 comments on commit 7d47004

Please sign in to comment.