Skip to content

Commit fc6e400

Browse files
authored
working dir is reset between jobs (#6)
The working directory for GitHub Actions jobs is beeing reset between jobs, so we have to run `npm ci` inside each job.
1 parent d4ed5df commit fc6e400

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ on:
55
types: [created]
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
13-
with:
14-
node-version: 12
15-
- run: npm ci
16-
178
eslint:
189
needs: build
1910
runs-on: ubuntu-latest
@@ -22,6 +13,7 @@ jobs:
2213
- uses: actions/setup-node@v1
2314
with:
2415
node-version: 12
16+
- run: npm ci
2517
- run: npm run eslint
2618

2719
publish-npm:

0 commit comments

Comments
 (0)