Compare commits

..
3 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
xrain 02c9c7af3c fix ci
Publish to npm / publish (push) Failing after 2m27s
2026-03-31 06:47:38 +08:00
+11 -21
View File
@@ -3,28 +3,28 @@ name: Publish to npm
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
- "*"
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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
run: echo "version=$(echo $GITHUB_REF | sed 's/refs\/tags\///')" >> $GITHUB_OUTPUT
run: |
VERSION="${GITHUB_REF#refs/tags/}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Update package.json version
run: npm pkg set version=${{ steps.version.outputs.version }}
@@ -37,13 +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 }}
See [changelog](https://github.com/simcu/simapi-vue/releases) for details.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}