Skip to content

Commit 7f4faf4

Browse files
authored
Merge pull request #54 from mjbvz/add-publish-workflow
Try adding publish workflow for string-offsets npm package
2 parents 0524b48 + e51571d commit 7f4faf4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch: # Allow manual triggering of the workflow
5+
6+
jobs:
7+
publish-npm:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 22
14+
registry-url: https://registry.npmjs.org/
15+
cache: npm
16+
- run: cd crates/string-offsets/js
17+
- run: npm ci
18+
- run: npm run compile
19+
- run: npm test
20+
- run: echo "Publishing string-offsets"
21+
- run: npm whoami; npm --ignore-scripts publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)