Skip to content

feat: add no-use-before-define rule (#22) #17

feat: add no-use-before-define rule (#22)

feat: add no-use-before-define rule (#22) #17

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@v3
with:
ref: main
fetch-depth: 0
token: ${{ secrets.GIT_HUB_TOKEN }}
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: '16'
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