Skip to content

3.1.0

3.1.0 #12

Workflow file for this run

name: Publish
permissions:
repository-projects: write
on:
release:
types: [released]
env:
NPM_TOKEN: ""
jobs:
publish:
permissions:
packages: write
contents: write
pull-requests: write
issues: write
repository-projects: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: master
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node Environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
uses: Borales/actions-yarn@v3.0.0
with:
cmd: install
- name: Build
uses: Borales/actions-yarn@v3.0.0
with:
cmd: build
- name: Test
uses: Borales/actions-yarn@v3.0.0
with:
cmd: git-hook-tasks pre-push
- name: Publish
env:
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}
GH_BOT_API_URL: ${{ secrets.GH_BOT_API_URL }}
GH_BOT_AUTH_TOKEN: ${{ secrets.GH_BOT_AUTH_TOKEN }}
GH_BOT_ENCRYPTION_SECRET: ${{ secrets.GH_BOT_ENCRYPTION_SECRET }}
run: ./scripts/publish.sh