Skip to content

fixing path again

fixing path again #96

Workflow file for this run

name: Cross-Platform Test
on: [push, pull_request]
jobs:
test-linux:
uses: ./.github/workflows/test_steps.yml

Check failure on line 5 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Cross-Platform Test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 5, Col: 11): Secret npm-token is required, but not provided while calling.
with:
os: ubuntu-latest
test-command: sudo npm run test:nix
test-macos:
uses: ./.github/workflows/test_steps.yml
with:
os: macos-latest
test-command: npm run test:mac
test-windows:
uses: ./.github/workflows/test_steps.yml
with:
os: windows-latest
test-command: npm run test:win
publish:
needs: [test-linux, test-macos, test-windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Set Git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Install dependencies
run: npm ci
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}