We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0524b48 + e51571d commit 7f4faf4Copy full SHA for 7f4faf4
.github/workflows/publish.yaml
@@ -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