repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: generate documentation
[poolifier.git]
/
.github
/
workflows
/
npmpublish.yml
diff --git
a/.github/workflows/npmpublish.yml
b/.github/workflows/npmpublish.yml
index d124eed3c81052a29f4898ba4d5894d488ca4f70..17eb40ed01ee38e287add3601b85240df92cca15 100644
(file)
--- a/
.github/workflows/npmpublish.yml
+++ b/
.github/workflows/npmpublish.yml
@@
-12,27
+12,30
@@
jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 8
+
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
+ cache: 'pnpm'
- name: Install
- name: Install
- run: |
- corepack enable
- corepack prepare pnpm@latest --activate
- pnpm install
+ run: pnpm install
- name: Tests & Coverage
run: |
- name: Tests & Coverage
run: |
- pnpm
run
test
- pnpm
run
coverage
+ pnpm test
+ pnpm coverage
- name: Lint
- name: Lint
- run: pnpm
run
lint
+ run: pnpm lint
- name: Production Build
- name: Production Build
- run: pnpm
run
build:prod
+ run: pnpm build:prod
publish:
needs: build
publish:
needs: build
@@
-42,21
+45,24
@@
jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 8
+
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: https://registry.npmjs.org/
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: https://registry.npmjs.org/
+ cache: 'pnpm'
- name: Read package.json version
id: package-version
uses: jaywcjlove/github-action-package@main
- name: Install
- name: Read package.json version
id: package-version
uses: jaywcjlove/github-action-package@main
- name: Install
- run: |
- corepack enable
- corepack prepare pnpm@latest --activate
- pnpm install
+ run: pnpm install
- name: Publish Release
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
- name: Publish Release
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}