Skip to content

Commit a239810

Browse files
committed
stop publishing static site when not required, fix repo url in package.json, fix permissions in publish workflow
1 parent b87a469 commit a239810

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/deploy_static.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
name: Deploy static content to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
5+
# Runs on pushes targeting the default branch and with changes in the static folder
66
push:
77
branches: ["main"]
8+
paths:
9+
- static/**
810

911
# Allows you to run this workflow manually from the Actions tab
1012
workflow_dispatch:

.github/workflows/publish_on_tag.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags: ['*']
67

@@ -29,4 +30,7 @@ jobs:
2930
echo "publishing"
3031
npm publish --provenance --access public
3132
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
35+
permissions:
36+
id-token: write

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
"prettier": "^3.5.3",
3030
"typescript": "^5.7.2"
3131
},
32-
"repository": "web-platform-dx/baseline-browser-mapping"
33-
}
32+
"repository": "git+https://github.com/web-platform-dx/baseline-browser-mapping.git"
33+
}

0 commit comments

Comments
 (0)