Skip to content

Commit f4e9eea

Browse files
committed
ci: simplify github actions
1 parent 7a5c31f commit f4e9eea

File tree

5 files changed

+19
-197
lines changed

5 files changed

+19
-197
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,50 @@
1+
---
12
name: Nuxt [Validate]
2-
33
env:
44
node_version: 20
5-
65
concurrency:
76
group: nuxt-laravel-echo-ci
87
cancel-in-progress: false
9-
108
on:
11-
workflow_dispatch: # manual trigger
9+
workflow_dispatch:
1210
pull_request:
13-
branches:
14-
- main
15-
11+
branches: [main]
1612
permissions:
1713
contents: read
18-
1914
jobs:
2015
lint:
2116
runs-on: ubuntu-latest
22-
2317
steps:
2418
- name: Checkout
2519
uses: actions/checkout@v4
26-
2720
- name: Setup Node.js
2821
uses: actions/setup-node@v4
2922
with:
3023
node-version: ${{ env.node_version }}
31-
3224
- name: Enable corepack
3325
run: corepack enable
34-
35-
# Issue: https://github.com/cypress-io/github-action/issues/1355
36-
- name: Set alternate npm integrity keys
37-
run: |
38-
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
39-
4026
- name: Install dependencies
4127
run: npx nypm@latest i
42-
43-
- name: Lint
44-
run: pnpm lint
45-
4628
- name: Build stubs
4729
run: pnpm dev:prepare
48-
30+
- name: Lint
31+
run: pnpm lint
4932
- name: Type check
5033
run: pnpm test:types
51-
5234
test:
5335
runs-on: ubuntu-latest
54-
5536
steps:
5637
- name: Checkout
5738
uses: actions/checkout@v4
58-
5939
- name: Setup Node.js
6040
uses: actions/setup-node@v4
6141
with:
6242
node-version: ${{ env.node_version }}
63-
6443
- name: Enable corepack
6544
run: corepack enable
66-
67-
# Issue: https://github.com/cypress-io/github-action/issues/1355
68-
- name: Set alternate npm integrity keys
69-
run: |
70-
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
71-
7245
- name: Install dependencies
7346
run: npx nypm@latest i
74-
7547
- name: Build stubs
7648
run: pnpm dev:prepare
77-
7849
- name: Test
7950
run: pnpm test

.github/workflows/docs.yml

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

.github/workflows/prerelease.yml

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,61 @@
1+
---
12
name: Nuxt [Pre-Release]
2-
33
env:
44
node_version: 20
55
changelog_user: Github CI
66
changelog_email: artem@manchenkoff.me
77
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
8-
NODE_REGISTRY: https://registry.npmjs.org/ # setup credentials for npm
9-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # pass token to generate changelog
10-
8+
NODE_REGISTRY: https://registry.npmjs.org/
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1110
concurrency:
1211
group: nuxt-laravel-echo-release
1312
cancel-in-progress: false
14-
1513
permissions:
1614
contents: write
1715
id-token: write
18-
19-
on:
20-
workflow_dispatch: # manual trigger
21-
16+
on: workflow_dispatch
2217
jobs:
2318
lint:
2419
runs-on: ubuntu-latest
25-
2620
steps:
2721
- name: Checkout
2822
uses: actions/checkout@v4
29-
3023
- name: Setup Node.js
3124
uses: actions/setup-node@v4
3225
with:
3326
node-version: ${{ env.node_version }}
34-
3527
- name: Enable corepack
3628
run: corepack enable
37-
38-
# Issue: https://github.com/cypress-io/github-action/issues/1355
39-
- name: Set alternate npm integrity keys
40-
run: |
41-
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
42-
4329
- name: Install dependencies
4430
run: npx nypm@latest i
45-
4631
- name: Prepare stubs
4732
run: pnpm dev:prepare
48-
4933
- name: Validate package
5034
run: pnpm validate
51-
5235
publish:
5336
runs-on: ubuntu-latest
5437
needs: lint
55-
5638
steps:
5739
- name: Checkout
5840
uses: actions/checkout@v4
5941
with:
60-
fetch-depth: 0 # fetch all history for tags
61-
42+
fetch-depth: 0
6243
- name: Setup Node.js
6344
uses: actions/setup-node@v4
6445
with:
6546
node-version: ${{ env.node_version }}
6647
registry-url: ${{ env.NODE_REGISTRY }}
67-
6848
- name: Enable corepack
6949
run: corepack enable
70-
71-
# Issue: https://github.com/cypress-io/github-action/issues/1355
72-
- name: Set alternate npm integrity keys
73-
run: |
74-
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
75-
7650
- name: Install dependencies
7751
run: npx nypm@latest i
78-
7952
- name: Prepare stubs
8053
run: pnpm dev:prepare
81-
8254
- name: Build
8355
run: pnpm prepack
84-
8556
- name: Generate changelog and publish release
86-
run: |
57+
run: |-
8758
git config --global user.name "${{ env.changelog_user }}"
8859
git config --global user.email "${{ env.changelog_email }}"
89-
pnpm changelogen --release --push --publish --prerelease --publishTag beta
60+
pnpm changelogen --release --push \
61+
--publish --prerelease --publishTag beta

.github/workflows/release.yml

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,60 @@
1+
---
12
name: Nuxt [Release]
2-
33
env:
44
node_version: 20
55
changelog_user: Github CI
66
changelog_email: artem@manchenkoff.me
77
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
8-
NODE_REGISTRY: https://registry.npmjs.org/ # setup credentials for npm
9-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # pass token to generate changelog
10-
8+
NODE_REGISTRY: https://registry.npmjs.org/
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1110
concurrency:
1211
group: nuxt-laravel-echo-release
1312
cancel-in-progress: false
14-
1513
permissions:
1614
contents: write
1715
id-token: write
18-
19-
on:
20-
workflow_dispatch: # manual trigger
21-
16+
on: workflow_dispatch
2217
jobs:
2318
lint:
2419
runs-on: ubuntu-latest
25-
2620
steps:
2721
- name: Checkout
2822
uses: actions/checkout@v4
29-
3023
- name: Setup Node.js
3124
uses: actions/setup-node@v4
3225
with:
3326
node-version: ${{ env.node_version }}
34-
3527
- name: Enable corepack
3628
run: corepack enable
37-
38-
# Issue: https://github.com/cypress-io/github-action/issues/1355
39-
- name: Set alternate npm integrity keys
40-
run: |
41-
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
42-
4329
- name: Install dependencies
4430
run: npx nypm@latest i
45-
4631
- name: Prepare stubs
4732
run: pnpm dev:prepare
48-
4933
- name: Validate package
5034
run: pnpm validate
51-
5235
publish:
5336
runs-on: ubuntu-latest
5437
needs: lint
55-
5638
steps:
5739
- name: Checkout
5840
uses: actions/checkout@v4
5941
with:
60-
fetch-depth: 0 # fetch all history for tags
61-
42+
fetch-depth: 0
6243
- name: Setup Node.js
6344
uses: actions/setup-node@v4
6445
with:
6546
node-version: ${{ env.node_version }}
6647
registry-url: ${{ env.NODE_REGISTRY }}
67-
6848
- name: Enable corepack
6949
run: corepack enable
70-
71-
# Issue: https://github.com/cypress-io/github-action/issues/1355
72-
- name: Set alternate npm integrity keys
73-
run: |
74-
echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV
75-
7650
- name: Install dependencies
7751
run: npx nypm@latest i
78-
7952
- name: Prepare stubs
8053
run: pnpm dev:prepare
81-
8254
- name: Build
8355
run: pnpm prepack
84-
8556
- name: Generate changelog and publish release
86-
run: |
57+
run: |-
8758
git config --global user.name "${{ env.changelog_user }}"
8859
git config --global user.email "${{ env.changelog_email }}"
8960
pnpm changelogen --release --push --publish

.vscode/settings.json

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

0 commit comments

Comments
 (0)