Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 6 additions & 4 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ jobs:
cd "$GITHUB_WORKSPACE/apify-docs-theme"
PACKAGE_NAME=$(jq -r .name package.json)
LATEST_VERSION=$(pnpm show "$PACKAGE_NAME" version 2>/dev/null || jq -r .version package.json)
pnpm pkg set "version=$LATEST_VERSION"
pnpm version patch --no-git-tag-version
# Compute the next patch version from the latest published one and write it directly.
# Avoid `pnpm version patch`, which refuses to run when the working tree is dirty
# (it becomes dirty whenever the committed version has drifted behind npm).
NEXT_VERSION=$(npx --yes semver -i patch "$LATEST_VERSION")
pnpm pkg set "version=$NEXT_VERSION"

- name: Deploy theme to npm
run: |
Expand All @@ -92,11 +95,10 @@ jobs:
pnpm show "$PACKAGE_NAME@$PACKAGE_VER" # fails if the package is not available, succeeds if it is

- name: Commit the new theme version
continue-on-error: true
uses: apify/actions/signed-commit@v1.0.0
with:
message: 'chore: publish new version of @apify/docs-theme [skip ci]'
add: 'apify-docs-theme/package.json apify-docs-theme/package-lock.json'
add: 'apify-docs-theme/package.json'
pull: '--rebase --autostash'
github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion apify-docs-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apify/docs-theme",
"version": "1.0.248",
"version": "1.0.251",
"description": "",
"main": "./src/index.js",
"files": [
Expand Down
Loading