-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.27 KB
/
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
34
35
36
37
38
39
40
41
42
43
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Create release
on:
push:
branches:
- develop
env:
ARTIFACT_NAME: Olympus.yymps
CHANGELOG_NAME: CHANGELOG.md
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: 'ubuntu-latest'
name: Create a release
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: node
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- run: npm install && npx yymps-export
if: ${{ steps.release.outputs.release_created }}
- name: Upload Release Artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ${{env.ARTIFACT_NAME}}