Skip to content

Commit

Permalink
feat(init): npm publish on GitHub Actions (#738)
Browse files Browse the repository at this point in the history
Fix #732
  • Loading branch information
ybiquitous committed Oct 6, 2020
1 parent 212dd44 commit 1da2987
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: "12"
registry-url: "https://registry.npmjs.org"
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
id: get_tag
- uses: softprops/action-gh-release@v1
Expand Down
7 changes: 7 additions & 0 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: \\"12\\"
registry-url: \\"https://registry.npmjs.org\\"
- run: npm publish
env:
NODE_AUTH_TOKEN: \${{ secrets.NPM_TOKEN }}
- run: echo ::set-output name=tag::\${GITHUB_REF/refs\\\\/tags\\\\//}
id: get_tag
- uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 1da2987

Please sign in to comment.