Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,21 @@ jobs:
with:
node-version: 24

- name: Enable Corepack
run: |
corepack enable
corepack prepare yarn@stable --activate

- name: Activate cache for Node.js
uses: actions/setup-node@v6
- uses: pnpm/action-setup@v4.1.0
name: Install pnpm
with:
node-version: 24
cache: yarn
Comment thread
B4nan marked this conversation as resolved.
cache-dependency-path: impit-node/yarn.lock
version: 10.24.0
run_install: false

- name: Install dependencies
run: cd impit-node && yarn
working-directory: impit-node
shell: bash
run: pnpm install --frozen-lockfile --prefer-offline --loglevel error
env:
HUSKY: "0"

- name: Build docs
run: cd impit-node && yarn docs
run: cd impit-node && pnpm run docs

- name: Upload artifact
uses: actions/upload-artifact@v7
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/node-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,25 @@ jobs:
node-version: 24
registry-url: 'https://registry.npmjs.org'

- name: Enable Corepack
run: |
corepack enable
corepack prepare yarn@stable --activate

- name: Activate cache for Node.js
uses: actions/setup-node@v6
- uses: pnpm/action-setup@v4.1.0
name: Install pnpm
with:
cache: yarn
cache-dependency-path: impit-node/yarn.lock
version: 10.24.0
run_install: false

- name: Install dependencies
run: yarn install
shell: bash
run: pnpm install --frozen-lockfile --prefer-offline --loglevel error
env:
HUSKY: "0"

- name: Download all artifacts
uses: actions/download-artifact@v8
with:
path: artifacts

- name: Move artifacts
run: yarn artifacts
run: pnpm artifacts

- name: List packages
run: ls -R ./npm
Expand All @@ -76,20 +74,20 @@ jobs:
- name: Calculate version
id: get-new-version
run: |
echo ::set-output name=TARGET_VERSION::$(npx semver --increment ${{ github.event.inputs.bump }} $(npm show impit version))
echo ::set-output name=TARGET_VERSION::$(pnpm dlx semver --increment ${{ github.event.inputs.bump }} $(npm show impit version))

- name: Set version
run: |
yarn version ${{ steps.get-new-version.outputs.TARGET_VERSION }}
yarn copy-version
npm version --no-git-tag-version ${{ steps.get-new-version.outputs.TARGET_VERSION }}
Comment thread
B4nan marked this conversation as resolved.
Outdated
pnpm copy-version

- name: Publish to npm
run: npm publish --provenance
run: pnpm publish --no-git-checks --provenance

- name: Update lockfile
run: |
for i in $(seq 1 5); do
yarn install --no-immutable && exit 0
pnpm install --lockfile-only && exit 0
[ $i -lt 5 ] && echo "Attempt $i failed, waiting 30s before retry..." && sleep 30
done
exit 1
Expand Down
Loading
Loading