Skip to content

add value list functionality #3

add value list functionality

add value list functionality #3

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Get token
id: get_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GREEN_BOT_APP_ID }}
private-key: ${{ secrets.GREEN_BOT_PRIVATE_KEY }}
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile --silent
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset:publish
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}