Release #26
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: Release | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
HUSKY: 0 | |
jobs: | |
release: | |
if: github.event_name == 'workflow_dispatch' && github.actor == 'pplancq' | |
name: Release | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: ./.github/actions/setup-node | |
- name: Install package | |
run: npm ci | |
# - name: Add git hook to auto add package-lock.json | |
# run: echo '#!/bin/sh\ngit add package-lock.json' >> .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit | |
- name: Config npm | |
run: npm config set access=public | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GIT_AUTHOR_EMAIL: ${{ vars.GIT_AUTHOR_EMAIL }} | |
GIT_AUTHOR_NAME: ${{ vars.GIT_AUTHOR_NAME }} | |
GIT_COMMITTER_EMAIL: ${{ vars.GIT_COMMITTER_EMAIL }} | |
GIT_COMMITTER_NAME: ${{ vars.GIT_COMMITTER_NAME }} | |
GIT_ASSETS: ${{ vars.GIT_ASSETS }} | |
GITHUB_DISABLED_SUCCESS_COMMENT: 'true' | |
GITHUB_DISABLED_RELEASED_LABELS: 'true' | |
run: npm run release |