Skip to content

Commit 1138fdd

Browse files
committed
ci: temporary manual release allowed
1 parent 8d86cf3 commit 1138fdd

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

.github/workflows/prepare-release.yaml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ name: Prepare Release PR
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: 'Version to publish, e.g. 0.0.1'
8-
required: true
9-
default: '0.0.1'
10-
type: string
115

126
jobs:
13-
prepare_release:
14-
name: Prepare Release PR
7+
publish_release:
8+
name: Publish Release
159
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
id-token: write
1613
steps:
1714
- name: Checkout
1815
uses: actions/checkout@v4
@@ -21,21 +18,21 @@ jobs:
2118

2219
- uses: ./.github/actions/setup-and-build
2320

24-
- name: Bump versions
21+
# sets steps.resolve-release-version.outputs.version
22+
- uses: ./.github/actions/resolve-release-version
23+
id: resolve-release-version
24+
25+
- name: Publish to npm
2526
run: >
2627
pnpm --recursive
2728
--filter "@tutorialkit/*"
28-
exec pnpm version --no-git-tag-version --allow-same-version ${{ inputs.version }}
29-
30-
- name: Generage changelog
31-
run: pnpm run changelog
29+
exec pnpm publish --provenance --access public
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3232

33-
- name: Create Pull Request
34-
uses: peter-evans/create-pull-request@v6
35-
with:
36-
# Note: `publish-release.yaml` checks explicitly for this commit message
37-
commit-message: 'chore: release `@tutorialkit` packages v${{ inputs.version }}'
38-
title: 'chore: release `@tutorialkit` packages v${{ inputs.version }}'
39-
body: 'Bump `@tutorialkit` packages to version ${{ inputs.version }} and generate changelogs.'
40-
reviewers: SamVerschueren,d3lm,Nemikolh,AriPerkkio
41-
branch: chore/release-${{ inputs.version }}
33+
- name: Create and push git tag
34+
run: |
35+
git config --global user.name 'github-actions'
36+
git config --global user.email '[email protected]'
37+
git tag v${{ steps.resolve-release-version.outputs.version }}
38+
git push origin v${{ steps.resolve-release-version.outputs.version }}

0 commit comments

Comments
 (0)