@ronaldphilipsen/local-action 7.1.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -63,11 +63,25 @@ jobs:
|
|
|
63
63
|
run: |
|
|
64
64
|
npm version "$VERSION" --no-git-tag-version
|
|
65
65
|
- name: npm publish
|
|
66
|
-
run:
|
|
67
|
-
|
|
66
|
+
run: |
|
|
67
|
+
npm publish || {
|
|
68
|
+
echo "npm publish failed; checking if the version already exists..."
|
|
69
|
+
if npm view "@ronaldphilipsen/local-action@$VERSION" version --registry https://registry.npmjs.org; then
|
|
70
|
+
echo "$VERSION is already published; skipping"
|
|
71
|
+
else
|
|
72
|
+
exit 1
|
|
73
|
+
fi
|
|
74
|
+
}
|
|
75
|
+
- name: Install Node.js (GitHub Packages)
|
|
76
|
+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
|
|
77
|
+
timeout-minutes: 5
|
|
68
78
|
env:
|
|
69
79
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
70
|
-
|
|
80
|
+
with:
|
|
81
|
+
node-version: '26'
|
|
82
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
83
|
+
- name: publish to GitHub Packages
|
|
84
|
+
run: npm publish
|
|
71
85
|
- name: Commit version bump
|
|
72
86
|
env:
|
|
73
87
|
GH_TOKEN: ${{ github.token }}
|