Skip to content

chore: add changeset #50

chore: add changeset

chore: add changeset #50

Workflow file for this run

name: Release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Create release pull request or publish to NPM
uses: changesets/action@v1
with:
commit: "build: version package"
title: "build: release new package version"
# version: npm run ci:version
publish: npm run ci:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}