@by-association-only/theme-backup 1.0.2 → 1.0.3
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.
|
@@ -9,12 +9,19 @@ jobs:
|
|
|
9
9
|
contents: read
|
|
10
10
|
id-token: write
|
|
11
11
|
steps:
|
|
12
|
-
- uses: actions/checkout@
|
|
13
|
-
- uses: actions/setup-node@
|
|
12
|
+
- uses: actions/checkout@v7
|
|
13
|
+
- uses: actions/setup-node@v7
|
|
14
14
|
with:
|
|
15
|
-
node-version: '
|
|
15
|
+
node-version: '24'
|
|
16
16
|
registry-url: 'https://registry.npmjs.org'
|
|
17
|
+
package-manager-cache: false
|
|
18
|
+
- name: Check release tag matches package.json version
|
|
19
|
+
run: |
|
|
20
|
+
PACKAGE_VERSION="v$(node -p "require('./package.json').version")"
|
|
21
|
+
if [ "$PACKAGE_VERSION" != "$GITHUB_REF_NAME" ]; then
|
|
22
|
+
echo "::error::Release tag $GITHUB_REF_NAME does not match package.json version $PACKAGE_VERSION. Bump the version in package.json before releasing."
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
17
25
|
- run: npm ci
|
|
26
|
+
# Authenticates via npm trusted publishing (OIDC), no token needed
|
|
18
27
|
- run: npm publish --access public
|
|
19
|
-
env:
|
|
20
|
-
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@by-association-only/theme-backup",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Backup Shopify themes across multiple stores.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,4 +25,3 @@
|
|
|
25
25
|
"homepage": "https://github.com/baoagency/theme-backup#readme",
|
|
26
26
|
"devDependencies": {}
|
|
27
27
|
}
|
|
28
|
-
|