Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: added ability to publish test packages #6389

Merged
merged 22 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 27 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
- 'build/**'
workflow_dispatch:
inputs:
node_version:
description: 'Node version to use for the build'
required: false
type: string
default: '20.x'
shairez marked this conversation as resolved.
Show resolved Hide resolved
disttag:
description: 'Publish "@builder.io/qwik" to NPM using this dist-tag, push the git-tag to the repo and create a GitHub release. The "latest" and "next" dist-tags will use the version number already committed in package.json.'
required: true
Expand All @@ -26,6 +31,14 @@ env:
CARGO_INCREMENTAL: 0

jobs:
check:
name: check
runs-on: ubuntu
steps:
- name: check
run: |
echo "node input: ${{ inputs.node_version }}"
shairez marked this conversation as resolved.
Show resolved Hide resolved

changes:
name: Setup
runs-on: ubuntu-latest
Expand Down Expand Up @@ -102,7 +115,7 @@ jobs:
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -172,7 +185,7 @@ jobs:
if: ${{ needs.changes.outputs.fullbuild == 'true' }}
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -265,7 +278,7 @@ jobs:
if: ${{ needs.changes.outputs.fullbuild == 'true' }}
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -332,7 +345,7 @@ jobs:
if: ${{ needs.changes.outputs.insightsbuild == 'true' }}
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -365,7 +378,7 @@ jobs:
if: ${{ needs.changes.outputs.docsbuild == 'true' }}
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -405,7 +418,7 @@ jobs:
if: ${{ needs.changes.outputs.fullbuild == 'true' }}
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -481,6 +494,9 @@ jobs:
packages/qwik-labs/vite/
packages/qwik-labs/package.json
if-no-files-found: error
- run: pnpx pkg-pr-new publish --compact ./packages/qwik/dist ./packages/qwik-city/dist dist-dev-eslint-plugin-qwik dist-dev-create-qwik
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What makes these dist-dev directories?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the upload-artifacts task from the job before

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

############ RELEASE ############
release:
Expand All @@ -502,7 +518,7 @@ jobs:
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -568,10 +584,10 @@ jobs:
settings:
- host: ubuntu-latest
browser: chromium
node: 18.x
node: ${{ inputs.node_version }}
- host: macos-latest
browser: webkit
node: 18.x
node: ${{ inputs.node_version }}

runs-on: ${{ matrix.settings.host }}

Expand Down Expand Up @@ -646,7 +662,7 @@ jobs:
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down Expand Up @@ -742,7 +758,7 @@ jobs:
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 18.x
node-version: ${{ inputs.node_version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"monaco-editor": "^0.45.0",
"mri": "1.2.0",
"path-browserify": "1.0.1",
"pkg-pr-new": "^0.0.5",
gioboa marked this conversation as resolved.
Show resolved Hide resolved
"prettier": "^3.2.5",
"prettier-plugin-jsdoc": "^1.3.0",
"pretty-quick": "^4.0.0",
Expand Down
Loading
Loading