Skip to content

Commit

Permalink
ci: update npm config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 16, 2023
1 parent 5b2a1c8 commit e5637e1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ on:

jobs:
website:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 18
registry-url: 'https://registry.npmjs.org'

- run: mkdir -p build
- run: npm i markdown-to-html-cli -g
Expand All @@ -21,4 +25,12 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./build

- run: npm publish --access public --provenance
name: 📦 loading-cli publish to NPM
working-directory: core
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit e5637e1

Please sign in to comment.