Include additionalParameters when input == null (#12) #13
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: Publish | |
on: | |
push: | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
- name: Get version | |
run: | | |
VERSION=${GITHUB_REF#refs/tags/} | |
echo Version: $VERSION | |
echo "VERSION=${VERSION}" >> $GITHUB_ENV | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Compile | |
run: pnpm build | |
- name: Update package.json version | |
run: | | |
jq --arg version $VERSION '.version = $version' package.json > package.tmp.json | |
mv package.tmp.json package.json | |
git diff package.json | |
- name: Publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | |
pnpm publish --no-git-checks --access public |