Skip to content

Commit e7efc57

Browse files
committed
chore: fix actions and docs
1 parent 18e53ab commit e7efc57

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed
Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: Bump Docs Version
1+
name: "Bump Docs Version"
22

33
on:
44
release:
5-
types: [published, released]
6-
workflow_dispatch:
5+
types: [released]
76

87
permissions:
98
contents: write
@@ -20,42 +19,29 @@ jobs:
2019
ref: main
2120
token: ${{ secrets.GITHUB_TOKEN }}
2221

23-
- name: Extract version from release tag or latest release
22+
- name: Extract version from release tag
2423
id: extract_version
2524
run: |
26-
if [ "${{ github.event_name }}" = "release" ]; then
27-
VERSION="${{ github.event.release.tag_name }}"
28-
else
29-
VERSION=$(curl -s "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r '.tag_name')
30-
fi
25+
VERSION="${{ github.event.release.tag_name }}"
3126
echo "version=$VERSION" >> $GITHUB_OUTPUT
3227
echo "Extracted version: $VERSION"
3328
34-
- uses: pnpm/action-setup@v4
35-
with:
36-
version: 9
37-
3829
- name: Setup Node
3930
uses: actions/setup-node@v6
4031
with:
4132
node-version: 22
42-
cache: pnpm
43-
cache-dependency-path: "./docs/pnpm-lock.yaml"
33+
cache: npm
34+
cache-dependency-path: docs/package-lock.json
4435

4536
- name: Update package.json version
4637
run: |
4738
cd docs
48-
pnpm version ${{ steps.extract_version.outputs.version }} --no-git-tag-version
39+
npm version ${{ steps.extract_version.outputs.version }} --no-git-tag-version
4940
echo "Updated docs/package.json to version ${{ steps.extract_version.outputs.version }}"
5041
5142
- name: Commit updated package.json
52-
id: commit
5343
uses: stefanzweifel/git-auto-commit-action@v7
5444
with:
5545
branch: main
5646
commit_message: "chore(docs): bump version to ${{ steps.extract_version.outputs.version }}"
5747
file_pattern: "docs/package.json"
58-
59-
- name: Expose commit SHA
60-
id: meta
61-
run: echo "commit_sha=${GITHUB_SHA}" >> $GITHUB_OUTPUT

docs/.vitepress/config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export default defineConfig({
2222
items: [
2323
{
2424
text: 'Changelog',
25-
link: 'https://github.com/farbcodegmbh/laravel-stateful-resources/blob/main/CHANGELOG.md'
25+
link: 'https://github.com/farbcodegmbh/laravel-evm/blob/main/CHANGELOG.md'
2626
},
2727
{
2828
text: 'Contributing',
29-
link: 'https://github.com/farbcodegmbh/laravel-stateful-resources/blob/main/CONTRIBUTING.md'
29+
link: 'https://github.com/farbcodegmbh/laravel-evm/blob/main/CONTRIBUTING.md'
3030
}
3131
]
3232
}

0 commit comments

Comments
 (0)