Skip to content

Commit 148435c

Browse files
Gate package publishing on main version changes
1 parent 0c4eb56 commit 148435c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/github-actions.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- package.json
79

810
env:
911
NPM_REGISTRY_URL: https://registry.npmjs.org
@@ -63,7 +65,6 @@ jobs:
6365
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
6466
needs: build
6567
runs-on: ubuntu-latest
66-
environment: npm-publish
6768
permissions:
6869
contents: read
6970
id-token: write

0 commit comments

Comments
 (0)