-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 1007 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# name: Release
# This will trigger the workflow when a pull request is merged into main.
# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
# workflow_run:
# workflows: ["Build and Test"] # Name of the triggering workflow
# types:
# - completed # Run this workflow when the 'Build and Test' workflow completes
# jobs:
# release:
# runs-on: ubuntu-latest
# # Only run if the build and test workflow succeeds
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Setup
# uses: ./.github/actions/setup
# # Run release-it to publish package to npm and create a GitHub release
# - name: Publish package and create GitHub release
# run: npx release-it --ci
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}