Skip to content

Commit

Permalink
Add cache to publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Jul 20, 2023
1 parent 7cd1f46 commit 9afb150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org/
scope: "@kingstinct"
cache: pnpm
- run: git config user.name "$(git log -n 1 --pretty=format:%an)"
- run: git config user.email "$(git log -n 1 --pretty=format:%ae)"
- run: pnpm install --frozen-lockfile
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/publish-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- run: npm ci
# - run: npm test
- run: npm run lint
- run: npm run typecheck
uses: ./.github/workflows/test.yml

publish-to-npm:
needs: test
Expand All @@ -43,6 +34,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: pnpm
registry-url: https://registry.npmjs.org/
scope: "@kingstinct"
- run: git config user.name "$(git log -n 1 --pretty=format:%an)"
Expand Down

0 comments on commit 9afb150

Please sign in to comment.