Skip to content

Release package

Release package #32

Workflow file for this run

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