Skip to content
Draft
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
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -11,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SAML_ACCOUNT_TOKEN }}
# with:
# token: ${{ secrets.SAML_ACCOUNT_TOKEN }}

- uses: ./.github/actions/prepare

Expand All @@ -25,11 +26,12 @@ jobs:
echo "scope=@mands" > .npmrc
echo "@mands:registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
pnpm publish --access=public
cat .npmrc
# pnpm publish --access=public

VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g')
echo "Tagging version $VERSION"
git config user.name release-bot
git config user.email release-bot@mnscorp.net
git tag -a $VERSION -m "Version ${VERSION}"
git push origin $VERSION
# VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g')
# echo "Tagging version $VERSION"
# git config user.name release-bot
# git config user.email release-bot@mnscorp.net
# git tag -a $VERSION -m "Version ${VERSION}"
# git push origin $VERSION
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Set of nx plugins to empower your NX workspace
## Want to contribute?

See the [Contribution Guidelines](/CONTRIBUTING.md).

## Tmp main branch