-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow to publish packages from feat/masp branch
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/masp | ||
# 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!" |