This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
fix(deps): update dependency @descope/react-sdk to v2.0.55 (#65) #74
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
name: 📢 Publish Next | |
on: | |
push: | |
branches: | |
- main | |
env: | |
NODE_VERSION: 16.14 | |
jobs: | |
publish: | |
name: 📢 Publish Next | |
permissions: | |
packages: write | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- uses: actions/setup-node@v4 | |
with: | |
# publish to npmjs.com | |
registry-url: 'https://registry.npmjs.org' | |
node-version-file: package.json | |
- name: Get Short SHA | |
run: echo "SHORT_SHA=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV | |
- name: Get Next Version | |
run: | | |
current_date=$(date +'%Y%m%d') | |
echo "NEW_VERSION=0.0.0-next-${SHORT_SHA}-${current_date}" >> $GITHUB_ENV | |
- name: Use Next Version | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Descope" | |
yarn version --new-version ${NEW_VERSION} | |
cat package.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Publish to NPM Package Registry | |
run: npm publish --access=public --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_REGISTRY }} |