Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow authored Aug 29, 2021
1 parent 07c6b54 commit 8a0b965
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: Publish to NPM
on: push

on:
release:
types: [released]
jobs:
publish:
name: Publish the release to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
with:
node-version: 14
- run: npm install
- uses: JS-DevTools/npm-publish@v1
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v2
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: true
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Run publish scripts
uses: danielhzhang/npm-publish-release@main
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8a0b965

Please sign in to comment.