We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a2a4fd commit bcc98f1Copy full SHA for bcc98f1
1 file changed
.github/workflows/publish_dev.yml
@@ -0,0 +1,26 @@
1
+name: Publish beta version of Package to npmjs
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ build_and_publish_beta:
8
+ if: github.ref_name != 'master' # Ensure it does not run on default branches
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write
12
+ environment: npm
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: '18.x'
18
+ registry-url: 'https://registry.npmjs.org'
19
+ - run: |
20
+ SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)
21
+ npm version 0.0.0-${{ github.ref_slug }}-$SHORT_SHA --no-git-tag-version
22
+ npm ci
23
+ npm run compile
24
+ npm publish --tag beta --provenance
25
+ env:
26
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments