Publish #2
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 | |
on: | |
workflow_dispatch: # Allow manual triggering of the workflow | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: crates/string-offsets/js | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
registry-url: https://registry.npmjs.org/ | |
cache: npm | |
- run: npm ci | |
- run: npm run compile | |
- run: npm test | |
- run: echo "Publishing string-offsets" | |
- run: npm whoami; npm --ignore-scripts publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |