Skip to content

Commit 850b726

Browse files
committed
update GitHub Actions
1 parent 8948f3c commit 850b726

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ jobs:
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:

.github/workflows/release-from-version-tag.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,19 @@ jobs:
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

0 commit comments

Comments
 (0)