Skip to content

Commit ef46c23

Browse files
committed
Simplify publish script
1 parent e920c53 commit ef46c23

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/post-release.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)