Merge pull request #15 from bob-collective/feat/sign-message #6
Workflow file for this run
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 snap to npm" | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
defaults: | |
run: | |
working-directory: ./packages/snap | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
scope: "@gobob" | |
cache: yarn | |
registry-url: https://registry.npmjs.org | |
always-auth: true | |
- name: Install dependencies | |
run: yarn install | |
- name: Test | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- name: Publish to NPM | |
run: yarn publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |