Skip to content

fix: set css variables with :root (#16) #14

fix: set css variables with :root (#16)

fix: set css variables with :root (#16) #14

name: Version and publish packages with changesets
on:
push:
branches:
- master
workflow_dispatch:
jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies with pnpm
uses: ./.github/actions/pnpm
- name: Build & test
uses: ./.github/actions/build-test
- name: Setup .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_PAT }}
HOME: ${{ github.workspace }}
- name: Create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: 'chore(changeset): version update'
title: 'chore(changeset): version update'
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOME: ${{ github.workspace }}