Skip to content

Commit

Permalink
ci: Update release info after release
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Dec 6, 2023
1 parent aa6b15a commit 47350e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- main
paths:
- ".github/workflows/release-info.yml"
- "packages/action-release-info/*"
schedule:
- cron: 0 4 * * *
workflow_dispatch:

concurrency: release-info
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/userscript-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,30 @@ jobs:
pull-requests: read

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Select NodeJS version
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
# renovate: datasource=docker depName=node versioning=node
node-version: "20.10.0"
- run: yarn install --immutable
- run: yarn build:all
- run: yarn lint:all
- name: Install dependencies
run: yarn install --immutable
- name: Build everything
run: yarn build:all
- name: Lint
run: yarn lint:all

- name: Get version
run: |
export KS_VERSION=$(yarn kitten-scientists:version)
echo "KS_VERSION=$KS_VERSION" >> $GITHUB_ENV
- run: yarn kitten-scientists:release
- name: Build release
run: yarn kitten-scientists:release

- uses: ./packages/action-automatic-releases
- name: Generate GitHub release
uses: ./packages/action-automatic-releases
with:
automatic_release_tag: next
draft: false
Expand All @@ -46,3 +52,6 @@ jobs:
prerelease: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
title: Development Build v${{ env.KS_VERSION }}

- name: Update release information
run: gh workflow run release-info.yml

0 comments on commit 47350e5

Please sign in to comment.