Skip to content

1.7.0-rc.0

1.7.0-rc.0 #2

Workflow file for this run

name: prerelease
on:
push:
branches:
# releases/<tag>/<version>
- releases/*/*
jobs:
prerelease:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Install core dependencies
run: npm ci --no-audit
- name: Extract tag and version
id: extract
run: |-
ref=${{ github.ref }}
branch=${ref:11}
tag_version=${branch:9}
tag=${tag_version%/*}
version=${tag_version##*/}
echo "tag=${tag}" >> $GITHUB_OUTPUT
echo "version=${version}" >> $GITHUB_OUTPUT
- name: Log versions
run: |-
echo tag=${{ steps.extract.outputs.tag }}
echo version=${{ steps.extract.outputs.version }}
- name: Setup git user
run: git config --global user.name github-actions
- name: Setup git email
run: git config --global user.email [email protected]
- name: Run npm version
run: npm version ${{ steps.extract.outputs.version }}-${{ steps.extract.outputs.tag }} --allow-same-version
- name: Push changes
run: git push --follow-tags
- name: Run npm publish
run: npm publish --tag=${{ steps.extract.outputs.tag }

Check failure on line 45 in .github/workflows/pre-release.yml

View workflow run for this annotation

GitHub Actions / prerelease

Invalid workflow file

The workflow is not valid. .github/workflows/pre-release.yml (Line: 45, Col: 14): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}