-
Notifications
You must be signed in to change notification settings - Fork 691
38 lines (31 loc) · 916 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}