Skip to content

Commit 47df27f

Browse files
committed
revert: needs param in yaml file reversion
I thought it would have stored the setup things, such as installing pnpm, but I was wrong. Would be cool if it did, but I don't think it works like that.
1 parent 7d9105f commit 47df27f

File tree

4 files changed

+49
-19
lines changed

4 files changed

+49
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ jobs:
4848
node-version: [16.x]
4949

5050
steps:
51+
- name: Clone repository
52+
uses: actions/checkout@v3
53+
54+
- name: Install pnpm
55+
uses: pnpm/[email protected]
56+
57+
- name: Set node version to 16
58+
uses: actions/setup-node@v2
59+
with:
60+
node-version: 16
61+
cache: 'pnpm'
62+
63+
- name: Install dependencies
64+
run: pnpm install --ignore-scripts
65+
5166
- name: Test lint
5267
run: pnpm run test:lint
5368
# test-audit:
@@ -60,6 +75,21 @@ jobs:
6075
# node-version: [16.x]
6176

6277
# steps:
78+
# - name: Clone repository
79+
# uses: actions/checkout@v3
80+
81+
# - name: Install pnpm
82+
# uses: pnpm/[email protected]
83+
84+
# - name: Set node version to 16
85+
# uses: actions/setup-node@v2
86+
# with:
87+
# node-version: 16
88+
# cache: 'pnpm'
89+
90+
# - name: Install dependencies
91+
# run: pnpm install --ignore-scripts
92+
6393
# - name: Test audit
6494
# run: pnpm audit
6595
test-unit:
@@ -73,5 +103,20 @@ jobs:
73103
node-version: [16.x]
74104

75105
steps:
106+
- name: Clone repository
107+
uses: actions/checkout@v3
108+
109+
- name: Install pnpm
110+
uses: pnpm/[email protected]
111+
112+
- name: Set node version to 16
113+
uses: actions/setup-node@v2
114+
with:
115+
node-version: 16
116+
cache: 'pnpm'
117+
118+
- name: Install dependencies
119+
run: pnpm install --ignore-scripts
120+
76121
- name: Test unit
77122
run: npm run test:unit --coverage --maxWorkers=2

.github/workflows/docs-github-pages-deploy.yml renamed to .github/workflows/docs-github-pages-deploy.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on:
1010
branches:
1111
- main
1212
jobs:
13-
build:
13+
build-and-deploy:
14+
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
15+
1416
runs-on: ${{ matrix.os }}
1517

1618
strategy:
@@ -36,19 +38,7 @@ jobs:
3638

3739
- name: Build library
3840
run: pnpm run build
39-
deploy:
40-
needs: build
41-
42-
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
43-
44-
runs-on: ${{ matrix.os }}
4541

46-
strategy:
47-
matrix:
48-
os: [ubuntu-latest]
49-
node-version: [16.x]
50-
51-
steps:
5242
- name: Deploy Pages
5343
uses: JamesIves/[email protected]
5444
with:

.github/workflows/npm-publish.yml renamed to .github/workflows/npm-publish.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
11+
publish-npm:
1212
runs-on: ${{ matrix.os }}
1313

1414
strategy:
@@ -37,12 +37,7 @@ jobs:
3737

3838
- name: Test library
3939
- run: npm test
40-
publish-npm:
41-
needs: build
4240

43-
runs-on: ubuntu-latest
44-
45-
steps:
4641
- name: Publish
4742
run: pnpm publish
4843
env:

0 commit comments

Comments
 (0)