Skip to content

fix: base url, links, gradient (#45) #22

fix: base url, links, gradient (#45)

fix: base url, links, gradient (#45) #22

Workflow file for this run

name: Changesets
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml
changesets:
name: Publish Changesets
needs: verify
permissions:
contents: write
id-token: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: PR or Publish to NPM
uses: changesets/action@v1
with:
publish: pnpm release
createGithubReleases: ${{ github.ref == 'refs/heads/main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish prerelease
# Only publish a prerelease if we didn't publish a release
if: steps.changesets.outputs.published != 'true'
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
git reset --hard origin/main
pnpm clean
pnpm changeset version --no-git-tag --snapshot canary
pnpm build
pnpm changeset publish --no-git-tag --snapshot canary --tag canary