-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
30 additions
and
349 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,36 @@ | ||
name: ci | ||
|
||
name: Publish nuxt-component-meta (Nightly) | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
nightly: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [20] | ||
|
||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/checkout@v4 # v4 | ||
- name: Add pnpm | ||
run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: 8 | ||
run_install: false | ||
- run: pnpm install | ||
- run: pnpm dev:prepare | ||
- run: pnpm lint | ||
- run: pnpm prepack | ||
- run: pnpm dev:generate | ||
- run: pnpm test | ||
|
||
release-edge: | ||
if: | | ||
github.event_name == 'push' && | ||
!contains(github.event.head_commit.message, '[skip-release]') && | ||
!contains(github.event.head_commit.message, 'docs') | ||
needs: | ||
- test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: 8 | ||
node-version: 20 | ||
registry-url: "https://registry.npmjs.org/" | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- run: pnpm dev:prepare | ||
|
||
- name: Release Edge | ||
run: bash ./.github/scripts/release-edge.sh | ||
- name: Prepare | ||
run: pnpm dev:prepare | ||
- name: Test | ||
run: pnpm test | ||
- name: Release Nightly | ||
run: pnpm changelogen --bump --canary --publish --publishTag nightly | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
NPM_CONFIG_PROVENANCE: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.