v0.2.0 #9
Workflow file for this run
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 npm package | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/[email protected] | |
with: | |
bun-version: latest | |
- run: bun install --frozen-lockfile | |
- run: bun test | |
publish-npm: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/[email protected] | |
with: | |
bun-version: latest | |
registry-url: https://registry.npmjs.org/ | |
- run: bun install --frozen-lockfile | |
- run: bun add -g npm | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |