Skip to content

Commit

Permalink
Update publishing workflow with correct node (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovineq authored Jan 19, 2023
1 parent 714bf2f commit 81f049e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ jobs:
./*
key: ${{ github.sha }}

- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
registry-url: 'https://registry.npmjs.org/'
token: ${{secrets.npm_token}}

- name: Publish package to NPM
run: npm run pub
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-docs:
runs-on: ubuntu-latest
needs: setup
Expand All @@ -54,6 +61,13 @@ jobs:
./*
key: ${{ github.sha }}

- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
registry-url: 'https://registry.npmjs.org/'

- name: Create docs build dir
run: mkdir docs_out

Expand Down

0 comments on commit 81f049e

Please sign in to comment.