update site #1301
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: | |
push: | |
branches: | |
- master | |
- canary | |
# paths-ignore: | |
# - 'www/**' | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
if: ${{ contains(github.event.head_commit.message, 'release version') }} | |
runs-on: ubuntu-latest | |
env: | |
NEXT_PUBLIC_BASE_URL: https://infinite-table.com/.netlify/functions/json-server | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: './.github/actions/will-release-check' | |
env: | |
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} | |
- name: Echo whoami on public npm registry | |
run: npm whoami | |
- name: Echo publish cmd | |
run: echo $WILL_RELEASE_CMD | |
- name: Set git config | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "SHIP IT" | |
- name: Install | |
run: npm ci | |
- name: Build test app | |
run: npm run ci:test:build | |
- name: Running Playwright Tests | |
run: npm run ci:test:run | |
# - name: Linting | |
# run: npm run lint | |
# working-directory: source | |
- name: Update TOC in markdown files | |
run: npm run doctoc | |
- name: Bump version | |
working-directory: source | |
run: npm run bump:${WILL_RELEASE_VERSION} | |
- name: Building | |
run: npm run build | |
- name: copy .npmrc | |
run: cp .npmrc source && cp .npmrc source/dist | |
- name: Ship it | |
uses: './.github/actions/execute-cmd' | |
with: | |
cmd_to_execute: $WILL_RELEASE_CMD | |
- run: git diff | |
- run: cat package.json | |
working-directory: source | |
- name: Push changes | |
uses: './.github/actions/git-push-action' | |
with: | |
branch: ${{ github.ref_name }} | |
github_token: ${{ secrets.DEPLOY_GITHUB_TOKEN }} | |
# - name: Send version to slack | |
# uses: "./.github/actions/send-version-to-slack" | |
# with: | |
# slack_webhook_notify: ${{ secrets.SLACK_WEBHOOK_NOTIFY }} | |
publish-docs-on-release: | |
needs: release | |
name: 'Rebuilds website' | |
uses: ./.github/workflows/rebuild-website.yml | |
secrets: inherit |