Skip to content

Merge pull request #16 from Bako-Labs/changeset-release/main #1

Merge pull request #16 from Bako-Labs/changeset-release/main

Merge pull request #16 from Bako-Labs/changeset-release/main #1

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: ./.github/actions/setup-forc
- name: Setup Caching
uses: actions/cache@v2
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8.4.0
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: pnpm install
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release or Publish
uses: changesets/action@v1
with:
commit: 'chore(deploy): Release'
title: 'chore(deploy): Release'
publish: pnpm ci:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}