Skip to content

fix: add import/no-extraneous-dependencies in ts-config by default (#24) #19

fix: add import/no-extraneous-dependencies in ts-config by default (#24)

fix: add import/no-extraneous-dependencies in ts-config by default (#24) #19

Workflow file for this run

name: Npm publish
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
on:
push:
branches:
- main
jobs:
Publish:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.GIT_HUB_TOKEN }}
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm i --no-frozen-lockfile
- name: Config Git
run: |
git config --local user.name "bot"
git config --local user.email "[email protected]"
- name: Publish to npm
run: |
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
pnpm -r publish --access public --no-git-checks
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: Update readme
run: |
node tools/update-readme.js
git commit -am '[skip ci] update readme'
git tag v${{ steps.package-version.outputs.current-version}}
- name: Push Readme
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GIT_HUB_TOKEN }}
branch: ${{ github.ref }}
tags: true