fix(deps): update dependency markdownlint-cli2 to v0.15.0 (#55) #63
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: Publish articles | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
publish_articles: | |
runs-on: ubuntu-latest | |
environment: publish | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT_CHECKOUT }} | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".node-version" | |
cache: "pnpm" | |
- run: pnpm install --frozen-lockfile | |
- run: npx qiita publish --all | |
env: | |
QIITA_TOKEN: ${{ secrets.QIITA_TOKEN }} | |
- run: pnpm run lint:fix | |
- run: | | |
git add ./public/* | |
if ! git diff --staged --exit-code --quiet; then | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git commit -m 'Updated by qiita-cli' | |
git push --force | |
fi |