Skip to content

Commit 95c0423

Browse files
chore: be able to deploy packages separately (#151)
1 parent bcb6eff commit 95c0423

File tree

2 files changed

+23
-40
lines changed

2 files changed

+23
-40
lines changed

.github/actions/release/action.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ on:
1414
- previous
1515
default: 'patch'
1616

17+
package:
18+
required: true
19+
type: choice
20+
description: Package to release
21+
options:
22+
- qwik-nx
23+
- create-qwik-nx
24+
1725
jobs:
1826
validate:
1927
runs-on: ubuntu-latest
@@ -54,8 +62,20 @@ jobs:
5462
uses: ./.github/actions/setup
5563

5664
- name: Release
57-
uses: ./.github/actions/release
65+
env:
66+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
run: pnpx nx run ${{ inputs.package }}:version-publish --configuration=${{ inputs.type }} --push=true
69+
70+
- name: Tag last-release
71+
if: github.ref == 'refs/heads/main'
72+
shell: bash
73+
run: git tag -f last-release
74+
75+
- name: Push changes
76+
uses: ad-m/github-push-action@master
5877
with:
5978
github_token: ${{ secrets.GITHUB_TOKEN }}
60-
npm_token: ${{ secrets.NPM_TOKEN }}
61-
configuration: ${{ github.event.inputs.type }}
79+
branch: ${{ github.ref }}
80+
force: true
81+
tags: true

0 commit comments

Comments
 (0)