fix: support each
without as
(#2615)
#123
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tagged Production Deploys for svelte-check | |
on: | |
push: | |
tags: | |
- "svelte-check-*" | |
jobs: | |
deploy: | |
permissions: | |
id-token: write # OpenID Connect token needed for provenance | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
cache: pnpm | |
# Ensure everything is compiling | |
- run: "pnpm install" | |
- run: "pnpm build" | |
- run: "pnpm bootstrap" | |
# Lets us use one-liner JSON manipulations the package.json files | |
- run: "npm install -g json" | |
# Setup the environment | |
- run: 'json -I -f packages/svelte-check/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"' | |
# Ship it | |
- run: | | |
cd packages/svelte-check | |
pnpm install | |
pnpm publish --provenance --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |