Compare commits

...
2 Commits
Author SHA1 Message Date
xrain c100973590 fix ci
Publish to npm / publish (push) Failing after 2m22s
2026-03-31 06:51:46 +08:00
xrain 957656ad5b fix ci
Publish to npm / publish (push) Failing after 2m22s
2026-03-31 06:50:18 +08:00
+8 -16
View File
@@ -3,22 +3,22 @@ name: Publish to npm
on:
push:
tags:
- '*'
workflow_dispatch:
- "*"
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Get version from tag
id: version
@@ -37,11 +37,3 @@ jobs:
- name: Publish to npm
run: npm publish --access public
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
body: |
## @simcu/simapi v${{ steps.version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}