feat: NonEmptyArray utility type #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build and Publish" | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PR_TITLE: "Create Release" | |
COMMIT_MSG: "chore: create new release" | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Build package | |
run: | | |
npm run build | |
npm run build-global | |
- name: Create dist folder artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist/ | |
- name: Create Release | |
uses: changesets/action@v1 | |
id: changesets | |
with: | |
publish: npm run publish-package | |
commit: ${{ env.COMMIT_MSG }} | |
title: ${{ env.PR_TITLE }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |