Skip to content

Add publish workflow #15

Add publish workflow

Add publish workflow #15

Workflow file for this run

name: publish
on: pull_request
# on:
# push:
# tags:
# - clients/js/[0-9].[0-9]+.[0-9]+
# - contracts/[0-9].[0-9]+.[0-9]+
# - integrations/hardhat/[0-9].[0-9]+.[0-9]+
env:
NPM_PACKAGE:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Extract tagged package
run: echo "integrations/hardhat/1.2.1" | grep -oE '(clients/js|contracts|integrations/hardhat)' >> $NPM_PACKAGE
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Publish ${{ github.ref_name }} to NPM
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: true
package: ${{ NPM_PACKAGE }}

Check failure on line 29 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yaml (Line: 29, Col: 20): Unrecognized named-value: 'NPM_PACKAGE'. Located at position 1 within expression: NPM_PACKAGE