1.33.0 #162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js Package Release | |
on: | |
release: | |
types: [created] | |
jobs: | |
build-publish-pkg: | |
name: Build and push package on node 18 | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
cache-dependency-path: 'yarn.lock' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run Yarn Build | |
run: yarn lib:build | |
- name: Publish package to npmjs | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
run: | | |
npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN | |
npm publish --access public |