File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 88 publish :
99 name : Build and publish to npm
1010 # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
11- runs-on : ubuntu-22 .04
11+ runs-on : ubuntu-24 .04
1212 steps :
1313 # https://github.com/marketplace/actions/checkout
1414 - uses : actions/checkout@v4
15+
1516 # https://github.com/actions/setup-node
1617 - uses : actions/setup-node@v4
1718 with :
18- node-version : 20
19+ node-version : 22
1920 registry-url : https://registry.npmjs.org/
21+
2022 # - run: npm ci
2123 - run : npm publish
2224 env :
Original file line number Diff line number Diff line change 88 build :
99 name : Build Release
1010 # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
11- runs-on : ubuntu-22 .04
11+ runs-on : ubuntu-24 .04
1212
1313 steps :
1414 # https://github.com/marketplace/actions/checkout
1515 - uses : actions/checkout@v4
1616
17- - name : Set up REPO and TAG environment vars
17+ - name : Set TAG environment variable
1818 run : |
19- echo "REPO=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
20- echo "TAG=${GITHUB_SHA:0:6}" >> $GITHUB_ENV
21-
22- - name : This run was triggered by a version tag, reset the $TAG variable to the tag name
23- if : startsWith(github.ref, 'refs/tags/v')
24- run : |
25- echo "TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
19+ echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
2620
2721 - name : Create GitHub release
28- if : ${{ contains(github.ref, 'refs/tags/') }}
2922 env :
3023 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3124 run : |
32- gh release create v${TAG}
25+ echo "Creating release for tag: ${TAG}"
26+ gh release create "${TAG}" --generate-notes
You can’t perform that action at this time.
0 commit comments