Skip to content

Auto Release

Auto Release #45

Workflow file for this run

# 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 }}"