Skip to content

add default theme for docs when js disabled #35

add default theme for docs when js disabled

add default theme for docs when js disabled #35

Workflow file for this run

# Expects:
# GitHub secrets: NPM_PUBLISH_TOKEN, VSCE_PAT
name: Create Version PR or Release
on:
push:
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
version_pr_or_release:
name: Changeset Version PR or Run Release Script
runs-on: ubuntu-latest
# prevents this action from running on forks
if: github.repository == 'timothycohen/samplekit'
# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.14'
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Create Release Pull Request or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
# see package.json scripts
version: pnpm changeset:version
publish: pnpm changeset:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}