Skip to content

Commit e5637e1

Browse files
committed
ci: update npm config.
1 parent 5b2a1c8 commit e5637e1

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66

77
jobs:
88
website:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@v2
1215
- uses: actions/setup-node@v2
1316
with:
14-
node-version: 14
17+
node-version: 18
18+
registry-url: 'https://registry.npmjs.org'
1519

1620
- run: mkdir -p build
1721
- run: npm i markdown-to-html-cli -g
@@ -21,4 +25,12 @@ jobs:
2125
uses: peaceiris/actions-gh-pages@v3
2226
with:
2327
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
publish_dir: ./build
28+
publish_dir: ./build
29+
30+
- run: npm publish --access public --provenance
31+
name: 📦 loading-cli publish to NPM
32+
working-directory: core
33+
continue-on-error: true
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+

0 commit comments

Comments
 (0)