-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from adibmbrk/add-changeset
- Loading branch information
Showing
4 changed files
with
441 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,14 +59,25 @@ jobs: | |
run: | | ||
yarn build | ||
- name: Bump Version | ||
- name: Setup Git User | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "asgardeo-github-bot" | ||
yarn run bump-${{ github.event.inputs.Type }}-version | ||
git push --follow-tags | ||
- name: Create Release Pull Request or Publish | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: yarn publish:packages | ||
version: yarn version:packages | ||
commit: "[Asgardeo Release] [GitHub Actions] Update package versions" | ||
title: "[Release] [GitHub Action] Update package versions" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ASGARDIO_GITHUB_BOT_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Pack Release Artifacts | ||
if: steps.changesets.outputs.hasChangesets == 'false' | ||
run: | | ||
mkdir artifacts | ||
if test -d samples | ||
|
@@ -83,6 +94,7 @@ jobs: | |
fi | ||
- name: Release Asgardeo Auth React SDK | ||
if: steps.changesets.outputs.hasChangesets == 'false' | ||
run: | | ||
version=`git describe --tags --abbrev=0` | ||
echo ${{secrets.ASGARDIO_GITHUB_BOT_TOKEN}} | gh auth login --with-token | ||
|
@@ -92,12 +104,3 @@ jobs: | |
else | ||
gh release create $version | ||
fi | ||
- name: Publish Asgardeo Auth React SDK | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
cp README.md lib | ||
cd lib | ||
npm publish --access public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.