Skip to content

Commit 61ff93e

Browse files
committed
chore: enable npm provenance
1 parent f7a6a07 commit 61ff93e

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/default.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ on:
77
pull_request:
88
branches:
99
- main
10+
workflow_dispatch:
1011

1112
jobs:
12-
default:
13+
test:
1314
runs-on: ubuntu-latest
1415
steps:
1516
- uses: actions/checkout@v5
@@ -28,6 +29,22 @@ jobs:
2829
run: |
2930
echo "${SFDX_AUTH_URL_DEVED}" | sf org login sfdx-url --set-default --alias deved --sfdx-url-stdin
3031
npm run test:e2e
32+
release:
33+
needs: test
34+
if: ${{ github.ref == 'refs/heads/main' }}
35+
runs-on: ubuntu-latest
36+
permissions:
37+
contents: write
38+
issues: write
39+
pull-requests: write
40+
id-token: write
41+
steps:
42+
- uses: actions/checkout@v5
43+
- uses: actions/setup-node@v5
44+
with:
45+
node-version-file: .node-version
46+
- name: Install dependencies
47+
run: npm ci
3148
- name: Release package
3249
run: npx semantic-release
3350
env:

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,8 @@
5353
"prepare": "npm run build",
5454
"test": "tsc -p test && mocha \"test/**/*.test.ts\"",
5555
"test:e2e": "tsc -p test && mocha --timeout 60000 \"test/**/*.e2e.ts\""
56+
},
57+
"publishConfig": {
58+
"provenance": true
5659
}
5760
}

0 commit comments

Comments
 (0)