File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -12,28 +12,19 @@ jobs:
1212 - name : Setup Node.js
1313 uses : actions/setup-node@v4
1414 with :
15- node-version : 22
15+ node-version : ' * '
1616 # Required by npm publish.
1717 registry-url : https://registry.npmjs.org
1818
1919 - name : Checkout
2020 uses : actions/checkout@v4
2121
22- - name : Get tag
23- run : echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
24-
25- - name : Set package version
26- run : |
27- npm config set git-tag-version=false
28- npm version $VERSION
29-
30- - name : Install deps
31- run : yarn
32-
3322 - name : Publish
3423 env :
3524 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3625 run : |
26+ npm install
27+ npx dot-json package.json version ${GITHUB_REF_NAME#v}
3728 npm publish
3829 npx dot-json package.json name @executorch/runtime
3930 npm publish --ignore-scripts --access public
You can’t perform that action at this time.
0 commit comments