Skip to content

fix(docs): add cleanUrls to Vercel config for static export routing #48

fix(docs): add cleanUrls to Vercel config for static export routing

fix(docs): add cleanUrls to Vercel config for static export routing #48

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # PR 생성을 위해 필요
pull-requests: write # PR 생성을 위해 필요
id-token: write # npm provenance를 위해 필요
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # CHANGELOG 생성을 위해 전체 히스토리 필요
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
always-auth: true
cache: "pnpm"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Setup .npmrc for npm publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > $HOME/.npmrc
echo "always-auth=true" >> $HOME/.npmrc
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# Version Packages PR을 생성하거나 배포
version: pnpm run version
publish: pnpm run release
commit: "chore: version packages"
title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
npm_config_registry: "https://registry.npmjs.org"
npm_config_always_auth: "true"
npm_config__authToken: ${{ secrets.NPM_TOKEN }}