-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 1.45 KB
/
auto-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
44
45
46
47
48
49
# This workflow will bump the patch version of the package and create a release on GitHub.
# It triggers the npm-publish workflow to publish the package to NPM.
name: Auto Release
on:
workflow_dispatch:
schedule:
# At 00:00 every week on Sunday.
- cron: '0 0 * * 0'
workflow_run:
workflows: ["Generate Coingecko Universe"]
types: [completed]
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Configure git'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Bump patch version
run: npm version patch
- name: Get version
id: project-version
uses: 'euberdeveloper/ga-project-version@main'
with:
package-manager: 'npm'
- run: git push
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ steps.project-version.outputs.version }}"
prerelease: false
title: "v${{ steps.project-version.outputs.version }}"