Skip to content

Commit d55b243

Browse files
dev package workflow
1 parent cd2f559 commit d55b243

File tree

2 files changed

+50
-6
lines changed

2 files changed

+50
-6
lines changed

.github/workflows/dev-package.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Dev Packages
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
- '!master'
8+
tags-ignore:
9+
- '**'
10+
env:
11+
SECRETS: ${{ toJSON(secrets) }}
12+
GITHUB_TOKEN: ${{ secrets.SHARED_GH_TOKEN }}
13+
14+
jobs:
15+
build:
16+
name: Publish
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{github.event.pull_request.head.sha}}
22+
fetch-depth: 0
23+
24+
- uses: actions/checkout@v4
25+
with:
26+
repository: journeyapps-platform/ci-actions
27+
token: ${{ secrets.SHARED_GH_TOKEN }}
28+
path: .github/ci
29+
ref: v1
30+
31+
- name: Setup NodeJS
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 22.16
35+
36+
- uses: pnpm/action-setup@v4
37+
name: Install pnpm
38+
39+
- name: Install Dependencies
40+
uses: ./.github/ci/actions/npm-install
41+
with:
42+
client: pnpm
43+
44+
- name: Build
45+
run: pnpm build
46+
47+
- name: Publish dev packages.
48+
uses: ./.github/ci/actions/pnpm-publish
49+
with:
50+
dev: true

.github/workflows/publish.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ jobs:
5151
- name: Build
5252
run: pnpm build
5353

54-
- name: Publish dev packages.
55-
if: ${{ github.ref != 'refs/heads/master' && steps.detect.outputs.has-changesets == 'true' && success() }}
56-
uses: ./.github/ci/actions/pnpm-publish
57-
with:
58-
dev: true
59-
6054
- name: Create Release Pull Request or Publish to npm
6155
if: ${{ github.ref == 'refs/heads/master' && steps.detect.outputs.has-changesets == 'true' }}
6256
id: changesets

0 commit comments

Comments
 (0)