Skip to content

Release

Release #44

Workflow file for this run

name: Release
on:
workflow_dispatch:
# push:
# branches:
# - main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
release:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
- name: Install pnpm
run: npm i pnpm@9 -g
- name: Setup registry
working-directory: .
run: |

Check failure on line 35 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 35, Col: 14): Unrecognized named-value: 'GITHUB_TOKEN'. Located at position 1 within expression: GITHUB_TOKEN
cat << EOF > "$HOME/.npmrc"
//npm.pkg.github.com/:_authToken=${{GITHUB_TOKEN}}
@smartlook:registry=https://npm.pkg.github.com
EOF
- name: Setup pnpm cache directory
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: 'chore: update versions'
title: 'chore: update versions'
publish: pnpm ci:publish