Skip to content

chore: add npm publishing to action #7

chore: add npm publishing to action

chore: add npm publishing to action #7

name: Crates
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
- uses: actions/setup-node@v4
with:

Check failure on line 16 in .github/workflows/publish-crates.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-crates.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: |
cd src/ic_oss_ts
npm install
npm test
npm build
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}