Skip to content

Commit d08a43d

Browse files
committed
fix: add release please
1 parent 4f84a92 commit d08a43d

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

.github/workflows/config.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,17 @@ jobs:
3030
name: code-coverage-report
3131
path: reports
3232
- run: |
33-
npx pkg-pr-new publish
33+
npx pkg-pr-new publish
34+
release:
35+
name: Release
36+
runs-on: ubuntu-latest
37+
if: github.ref == 'refs/heads/master'
38+
steps:
39+
# https://github.com/googleapis/release-please-action
40+
- name: Release Please
41+
uses: googleapis/release-please-action@v4
42+
id: release
43+
with:
44+
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#github-credentials
45+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
46+
release-type: node

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# IMPORTANT: DO NOT RENAME THIS FILE
2+
# It uses Trusted Publisher to deploy without token
3+
# https://www.npmjs.com/package/serverless-step-functions/access
4+
5+
name: Release
6+
7+
on:
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
permissions:
13+
id-token: write # needed for npm publish with provenance
14+
15+
jobs:
16+
release:
17+
name: Release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
- run: |
25+
npm install --legacy-peer-deps
26+
- run: |
27+
npm run lint
28+
- run: |
29+
npm run test
30+
- run: |
31+
npm publish --provenance

0 commit comments

Comments
 (0)