Skip to content

Commit 26fde20

Browse files
chore: Update GitHub Actions workflows for pull request CI and npm publishing
1 parent cd3d754 commit 26fde20

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ name: Publish to npm
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
id-token: write
8+
contents: write
9+
610
jobs:
711
build-and-test:
8-
uses: ./.github/workflows/test-publish.yml
12+
uses: ./.github/workflows/common.yml
913

1014
publish:
1115
needs: build-and-test

.github/workflows/pull-request.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write
10+
contents: write
11+
812
jobs:
913
build-and-test:
10-
uses: ./.github/workflows/test-publish.yml
14+
uses: ./.github/workflows/common.yml

0 commit comments

Comments
 (0)