chore(deps): update dependency @biomejs/biome to v1.9.3 #132
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: Publishing to npm | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "!*" | |
paths: | |
- 'package.json' | |
jobs: | |
check-version: | |
name: Checking whether it can be published or not | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Setting up Node.js | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: .node-version | |
registry-url: 'https://registry.npmjs.org' | |
cache: npm | |
- name: Executing can-npm-publish | |
run: npx can-npm-publish --verbose | |
release: | |
name: Releasing | |
needs: check-version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Setting up Node.js | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: .node-version | |
registry-url: 'https://registry.npmjs.org' | |
cache: npm | |
- name: Installing dependencies | |
run: npm ci --no-fund --no-audit | |
- name: Extract package-version | |
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV | |
- name: package-version-to-git-tag | |
uses: pkgdeps/git-tag-action@ef111413f44ebe5cc05994e7f5b5b9edaaada08d # v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
github_repo: ${{ github.repository }} | |
version: ${{ env.PACKAGE_VERSION }} | |
git_commit_sha: ${{ github.sha }} | |
git_tag_prefix: "v" | |
- name: Build package | |
run: npm run build:publish | |
- name: Publishing to npm | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |