-
Notifications
You must be signed in to change notification settings - Fork 19
46 lines (38 loc) · 1.58 KB
/
CreateGWRelease.yml
File metadata and controls
46 lines (38 loc) · 1.58 KB
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
44
45
46
name: Create GitHub release of GW
# This workflow for generator-widget:
# 1. Puts current version from package.json as the version for unreleased changes in CHANGELOG.md
# 2. Commits the updates of CHANGELOG.md and pushes the commit to the repo
# 3. Based on the commit it:
# 3.1 Creates a draft GitHub release for GW.
# 3.2 Creates a merge request that targets CHANGELOG.md updates back to master.
#
# NOTE: Publishing to npm doesn't happen in this workflow. PublishNpm.yml is responsible fot npm publishing.
# When the GitHub release is approved, that creates a corresponding git tag to trigger PublishNpm.yml.
on: workflow_dispatch
jobs:
release:
name: "Create GitHub release and changelogs MR of GW"
runs-on: ubuntu-latest
steps:
- name: "Checking-out code"
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
with:
submodules: false
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda #v4.1.0
with:
version: 10
- name: "Defining node version"
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: ".nvmrc"
cache: 'pnpm'
- name: "Installing dependencies"
run: pnpm install
- name: "Creating GW release and MR"
run: "pnpm --dir packages/release-tools run release:gw"
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_EMAIL: ${{ secrets.GH_EMAIL }}
GH_NAME: ${{ secrets.GH_NAME }}
GH_PAT: ${{ secrets.GH_PAT }}