Skip to content

Commit 21ead8d

Browse files
authored
Configure trusted publisher (#99)
1 parent 9537d7e commit 21ead8d

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/publish.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
@@ -13,22 +17,19 @@ jobs:
1317
- name: Checkout code
1418
uses: actions/checkout@v6
1519

20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: '24'
23+
registry-url: 'https://registry.npmjs.org'
24+
1625
- name: Setup act
1726
run: |
1827
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash -s -- -b "/usr/bin"
1928
# Use the micro image to speed up tests: https://nektosact.com/usage/runners.html
2029
echo "-P ubuntu-latest=node:16-buster-slim" > $HOME/.actrc
2130
22-
- name: Install dependencies
23-
run: |
24-
npm install
25-
26-
- name: Package act-test-runner
27-
run: |
28-
npm run package
29-
3031
- name: Publish act-test-runner to npm
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3332
run: |
34-
npm publish
33+
npm ci
34+
npm run check
35+
npm publish --provenance

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pshevche/act-test-runner",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Convention wrapper around https://github.com/nektos/act for e2e testing GitHub actions",
55
"author": "Pavlo Shevchenko",
66
"keywords": [

0 commit comments

Comments
 (0)