Skip to content

chore(deps): update dependency husky to v9.1.1 #120

chore(deps): update dependency husky to v9.1.1

chore(deps): update dependency husky to v9.1.1 #120

Workflow file for this run

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@60edb5dd545a775178f52524783378180af0d1f8 # v4
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@60edb5dd545a775178f52524783378180af0d1f8 # v4
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 }}