Skip to content

chore(deps): update typescript-eslint monorepo to v6.2.0 #33

chore(deps): update typescript-eslint monorepo to v6.2.0

chore(deps): update typescript-eslint monorepo to v6.2.0 #33

Workflow file for this run

name: Publishing to npm
on:
push:
branches:
- main
tags:
- "!*"
jobs:
check-version:
name: Checking wheather it can be published or not
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Setting up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
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
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Setting up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
cache: npm
- name: Installing dependencies
run: |
npm ci
- 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@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_repo: ${{ github.repository }}
version: ${{ env.PACKAGE_VERSION }}
git_commit_sha: ${{ github.sha }}
git_tag_prefix: "v"
- name: Publishing to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}