Release package #32
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: Release package | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release @pubnub/tomato | |
runs-on: | |
group: Default Larger Runners | |
labels: ubuntu-latest-m | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Update credentials | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > "$NPM_CONFIG_USERCONFIG" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build all packages | |
run: npm run build | |
- name: Test npm | |
run: npm whoami | |
- name: Release | |
run: npm publish --access public |