Skip to content

update

update #3

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created

Check failure on line 1 in .github/workflows/npm.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm.yml

Invalid workflow file

`on.workflow_run` does not reference any workflows. See https://docs.github.com/actions/learn-github-actions/events-that-trigger-workflows#workflow_run for more information
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish Package to npm
on:
workflow_run:
push:
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
- "v[0-9]+\\.[0-9]+\\.[0-9]+-rc[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: |
cd solidity
yarn install
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}