Skip to content

Commit 61d92a1

Browse files
dependabot[bot]npm-cli-botwraithgar
authored
chore: bump @npmcli/template-oss from 4.12.0 to 4.13.0 (#70)
* chore: bump @npmcli/template-oss from 4.12.0 to 4.13.0 Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.12.0 to 4.13.0. - [Release notes](https://github.com/npm/template-oss/releases) - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md) - [Commits](npm/template-oss@v4.12.0...v4.13.0) --- updated-dependencies: - dependency-name: "@npmcli/template-oss" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * chore: postinstall for dependabot template-oss PR * chore: postinstall for dependabot template-oss PR --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: npm CLI robot <[email protected]> Co-authored-by: Gar <[email protected]>
1 parent bb3d0f3 commit 61d92a1

File tree

2 files changed

+16
-31
lines changed

2 files changed

+16
-31
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
RELEASE_COMMENT_ID: ${{ needs.release.outputs.comment-id }}
172172
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173173
run: |
174-
npm exec --offline -- template-oss-release-manager --lockfile=false
174+
npm exec --offline -- template-oss-release-manager --lockfile=false --publish=true
175175
npm run rp-pull-request --ignore-scripts --if-present
176176
- name: Commit
177177
id: commit
@@ -320,41 +320,25 @@ jobs:
320320
defaults:
321321
run:
322322
shell: bash
323+
permissions:
324+
deployments: write
323325
steps:
326+
- name: Checkout
327+
uses: actions/checkout@v3
328+
with:
329+
ref: ${{ fromJSON(needs.release.outputs.release).tagName }}
324330
- name: Setup Node
325331
uses: actions/setup-node@v3
326332
with:
327333
node-version: 18.x
328334
- name: Install npm@latest
329-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
330-
- name: npm Version
331-
run: npm -v
332-
- name: View in Registry
333335
run: |
334-
EXIT_CODE=0
335-
336-
function is_published {
337-
if npm view "$@" --loglevel=error > /dev/null; then
338-
echo 0
339-
else
340-
echo 1
341-
fi
342-
}
343-
344-
for release in $(echo '${{ needs.release.outputs.releases }}' | jq -r '.[] | @base64'); do
345-
name=$(echo "$release" | base64 --decode | jq -r .pkgName)
346-
version=$(echo "$release" | base64 --decode | jq -r .version)
347-
spec="$name@$version"
348-
status=$(is_published "$spec")
349-
if [[ "$status" -eq 1 ]]; then
350-
echo "$spec ERROR"
351-
EXIT_CODE=$status
352-
else
353-
echo "$spec OK"
354-
fi
355-
done
356-
357-
exit $EXIT_CODE
336+
npm i --prefer-online --no-fund --no-audit -g npm@latest
337+
npm config set '//registry.npmjs.org/:_authToken'=\${PUBLISH_TOKEN}
338+
- name: Publish
339+
env:
340+
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
341+
run: npm publish
358342

359343
post-release-integration:
360344
needs: [ release, release-integration ]

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@
5151
},
5252
"devDependencies": {
5353
"@npmcli/eslint-config": "^4.0.0",
54-
"@npmcli/template-oss": "4.12.0",
54+
"@npmcli/template-oss": "4.13.0",
5555
"tap": "^16.0.1"
5656
},
5757
"engines": {
5858
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
5959
},
6060
"templateOSS": {
6161
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
62-
"version": "4.12.0"
62+
"version": "4.13.0",
63+
"publish": "true"
6364
}
6465
}

0 commit comments

Comments
 (0)