-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (40 loc) · 1.19 KB
/
publish-packages.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
39
40
41
42
43
44
45
46
47
name: Publish
on:
push:
branches:
- main
# Only publish when changes are made to the following paths
paths:
- 'packages/**'
- 'circuits/**'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Packages
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.15.x
- name: Install Dependencies
run: yarn
- name: Publish to NPM registry
id: changesets
uses: changesets/action@v1
with:
# auto publishes PATCH version bump
publish: yarn publish:ci
env:
GITHUB_TOKEN: ${{ secrets.PA_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Slack Notification
if: steps.changesets.outputs.published == 'true'
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: 'Webb-Bot'
SLACK_CHANNEL: '#webb-protocol-solidity'
SLACK_MESSAGE: 'A new version of ${GITHUB_REPOSITORY} packages was published!'