Skip to content

Commit a5ad729

Browse files
authored
Update publish.yml to match relative-time-element publish
1 parent af06374 commit a5ad729

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@ on:
66

77
jobs:
88
publish-npm:
9+
name: Publish to npm
910
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
1014
steps:
1115
- uses: actions/checkout@v3
1216
- uses: actions/setup-node@v3
1317
with:
14-
node-version: 14
18+
node-version: 18
1519
registry-url: https://registry.npmjs.org/
1620
cache: npm
21+
- run: npm install -g npm@latest
1722
- run: npm ci
1823
- run: npm test
1924
- run: npm version ${TAG_NAME} --git-tag-version=false
2025
env:
2126
TAG_NAME: ${{ github.event.release.tag_name }}
22-
- run: npm whoami; npm --ignore-scripts publish
27+
- run: npm whoami; npm --ignore-scripts publish --provenance --access public
2328
env:
2429
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)