Skip to content

docs: samples on adding and removing items (#145) #294

docs: samples on adding and removing items (#145)

docs: samples on adding and removing items (#145) #294

Workflow file for this run

name: Publish
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
name: Publish
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/cache@v3
with:
path: |
**/node_modules
./.yarn/cache
key: ${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock') }}
- uses: volta-cli/[email protected]
with:
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn lint:test
- run: yarn test
- run: yarn build:core
- run: yarn build:web
- name: Copy readme.md to packages
run: |
for dir in $(find packages -type d -maxdepth 1); do
cp readme.md $dir/readme.md
done
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npx zx ./scripts/version.mjs
publish: yarn changeset publish
commit: "chore: release [nosnapshot]"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}