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
26 changes: 15 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Release [Manual]
on: workflow_dispatch
permissions:
contents: write
id-token: write # required for trusted publishing
jobs:
Release:
runs-on: ubuntu-latest
Expand All @@ -27,15 +28,15 @@ jobs:
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}
CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }}
- name: Authenticate with Registry
run: |
echo "@${NPM_USERNAME}:registry=https://registry.npmjs.org/" > .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_USERNAME: ${{ vars.NPM_USERNAME }}
# - name: Authenticate with Registry
# run: |
# echo "@${NPM_USERNAME}:registry=https://registry.npmjs.org/" > .npmrc
# echo "registry=https://registry.npmjs.org/" >> .npmrc
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
# npm whoami
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# NPM_USERNAME: ${{ vars.NPM_USERNAME }}

- name: Install 📌
run: |
Expand All @@ -44,9 +45,12 @@ jobs:
run: npm run test
- name: Semantic Publish to NPM 🚀
# "HUSKY=0" disables pre-commit-msg check (Needed in order to allow semantic-release perform the release commit)
run: HUSKY=0 npx semantic-release
run: |
npm config set provenance true
HUSKY=0 npx semantic-release
env:
GH_TOKEN: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# npm token not needed got trusted publishing
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Changelog 📝
run: cd src/release_notes && HUSKY=0 node release-notes.js
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "loopback4-authentication",
"version": "13.0.0",
"description": "A loopback-next extension for authentication feature. Various Oauth strategies supported.",
"description": "A loopback-next extension for authentication feature. Various Oauth strategies supported by this package.",
"keywords": [
"loopback-extension",
"loopback",
Expand Down