Publish hono-correlation-id to npm #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish hono-correlation-id to npm | |
# trigger when a release is created | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Clean install | |
run: npm install | |
- name: Run test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- uses: JS-DevTools/[email protected] | |
with: | |
token: ${{ secrets.NPM_CORR_ID_PUBLISH }} |