-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 958 Bytes
/
release.yml
File metadata and controls
34 lines (33 loc) · 958 Bytes
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
name: Release
on:
- workflow_dispatch
jobs:
release-alpha:
name: Release [Alpha]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node modules
uses: actions/setup-node@v3
- name: Setup Git
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Install dependencies
run: npm install
- name: Run version bump
run: npm run version:alpha:affected
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag version bump
shell: bash
run: git tag -f last-release
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true