Skip to content

Commit

Permalink
workflow to publish packages from feat/masp branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dev0x1 committed Oct 10, 2023
1 parent 4a1fc29 commit d78006e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish-packages-branch-feat-masp.yml
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!"

0 comments on commit d78006e

Please sign in to comment.