Skip to content

Commit 1ded687

Browse files
committed
more improvements to release workflow
1 parent c785480 commit 1ded687

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: Release NPM Package
22

33
on:
44
push:
5-
branches:
6-
- master
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
711

812
jobs:
913
release:
@@ -16,14 +20,25 @@ jobs:
1620
- name: Install Node.js
1721
uses: actions/setup-node@v4
1822
with:
19-
node-version: 20
23+
node-version: 24
2024
registry-url: "https://registry.npmjs.org"
2125

26+
- name: Install latest npm
27+
run: npm install -g npm@latest
28+
2229
- name: Install dependencies
2330
run: npm install
2431

25-
- name: Install latest npm
26-
run: npm install -g npm@latest
32+
- name: Run Lint and Test
33+
run: |
34+
set -e
35+
npm run lint
36+
npm run test
37+
38+
- name: Integration Tests
39+
run: |
40+
npm link
41+
sleep 5; SLS_DEBUG=1 npm run test:integration
2742
2843
- name: Publish to npm
2944
env:

0 commit comments

Comments
 (0)