We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c0169f commit 8630021Copy full SHA for 8630021
1 file changed
.github/workflows/npm-dist-tag.yml
@@ -0,0 +1,28 @@
1
+name: Move npm dist-tag
2
+
3
+on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: 'Package version to point the tag at (e.g. 3.1.1)'
8
+ required: true
9
+ tag:
10
+ description: 'dist-tag name to move'
11
+ required: false
12
+ default: 'latest'
13
14
+jobs:
15
+ dist-tag:
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ contents: read
19
+ id-token: write
20
+ steps:
21
+ - uses: actions/setup-node@v4
22
+ with:
23
+ node-version: 20.x
24
+ registry-url: https://registry.npmjs.org
25
+ - name: Move dist-tag
26
+ run: npm dist-tag add @switchbot/openapi-cli@${{ inputs.version }} ${{ inputs.tag }}
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments