Skip to content

Commit

Permalink
Merge pull request #53 from samchon/feature/release
Browse files Browse the repository at this point in the history
Automate npm publish
  • Loading branch information
samchon authored Sep 24, 2024
2 parents bb4db6f + 7747de6 commit ded2afc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# author: elliot-huffman
name: release
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: none
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}

0 comments on commit ded2afc

Please sign in to comment.