Skip to content

Bump picomatch from 2.3.1 to 2.3.2 in /crates/node-bindings #28

Bump picomatch from 2.3.1 to 2.3.2 in /crates/node-bindings

Bump picomatch from 2.3.1 to 2.3.2 in /crates/node-bindings #28

Workflow file for this run

name: Publish

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
env:
DEBUG: napi:*
APP_NAME: berry
CARGO_INCREMENTAL: '0'
CARGO_PROFILE_TEST_DEBUG: 0
CARGO_TERM_COLOR: always
on:
workflow_call:
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
needs:
- test-linux-x64-gnu-binding
steps:
- uses: actions/checkout@v5
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create npm dirs
run: yarn napi create-npm-dirs
- name: Move artifacts
run: yarn artifacts
- name: List packages
run: ls -R ./npm
shell: bash
- name: Publish
run: |
npm config set provenance true
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --tag next --access public
else
echo "Not a release, skipping publish"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}