Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Armaldio committed Dec 24, 2024
1 parent b229868 commit eda2b34
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/app-construct-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies and build
run: |
pnpm install
pnpm run build
pnpm build --filter=@pipelab/construct-plugin
# - name: Auto Generate Documentation
# run: |
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/**/*
files: apps/construct-plugin/dist/**/*

# - name: Check if variables are set
# id: check
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/apps-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,25 @@ jobs:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}
run: pnpm electron-forge publish --dry-run
run: cd apps/desktop && pnpm electron-forge publish --dry-run

- name: Run tests
uses: coactions/setup-xvfb@v1
with:
run: pnpm test:e2e:raw
run: cd apps/desktop && pnpm test:e2e:raw

- name: Upload Playwright artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-playwright
path: playwright/**/*
path: apps/desktop/playwright/**/*

- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-out
path: out/**/*
path: apps/desktop/out/**/*

release:
permissions:
Expand All @@ -90,7 +90,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: ${{ matrix.os }}-out
path: out
path: apps/desktop/out

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand All @@ -109,4 +109,4 @@ jobs:
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm electron-forge publish --from-dry-run
run: cd apps/desktop && pnpm electron-forge publish --from-dry-run
9 changes: 5 additions & 4 deletions .github/workflows/lib-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
node-version: "22.x"
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm build --filter=@pipelab/core
- run: pnpm test

# publish to npm
Expand All @@ -36,10 +37,10 @@ jobs:
node-version: "22.x"
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v4
- run: pnpm npm install
- run: pnpm npm run build
# - run: pnpm npm run test
- run: pnpm npm publish
- run: pnpm install
- run: pnpm build --filter=@pipelab/core
# - run: pnpm run test
- run: cd libs/core && pnpm publish
if: github.ref == 'refs/tags/v*'
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM_TOKEN}}
Expand Down

0 comments on commit eda2b34

Please sign in to comment.