Publish Packages #995
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: Publish Packages | |
on: | |
workflow_run: | |
workflows: | |
- Generate Token List | |
types: [completed] | |
branches: [master] | |
jobs: | |
publish-bot: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.0 | |
# Setup .npmrc file to publish to npm | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
always-auth: 'true' | |
scope: '@eth-optimism' | |
- name: Install dependencies to prepare for release 🔧 | |
run: pnpm install --frozen-lockfile | |
- name: Build and publish package on NPM 📦 | |
run: pnpm release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |