Skip to content

Merge pull request #13 from farm-fe/release-plz-2024-07-15T11-58-59Z #7

Merge pull request #13 from farm-fe/release-plz-2024-07-15T11-58-59Z

Merge pull request #13 from farm-fe/release-plz-2024-07-15T11-58-59Z #7

Workflow file for this run

name: Publish packages to npm
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
call-rust-build:
uses: ./.github/workflows/CI.yaml

Check failure on line 17 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/release.yaml" -> "./.github/workflows/CI.yaml" : failed to fetch workflow: workflow was not found.
release:
name: Release
needs: [call-rust-build]
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: npm install -g [email protected] && pnpm i --frozen-lockfile
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Move Artifacts
run: pnpm artifacts
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: pnpm run bump
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}