Skip to content

Commit

Permalink
no comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MetaverseUnknower committed Dec 17, 2023
1 parent 6a588a3 commit 234e342
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/prerelease-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,20 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
path: ./
- name: Check branch
id: check_branch
run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's/refs\/heads\///')" >> $GITHUB_ENV
- name: Conditionally publish
if: ${{ steps.check_branch.outputs.BRANCH_NAME != 'master' && steps.check_branch.outputs.BRANCH_NAME != 'main' && github.event_name != 'pull_request' }}
run: |
cd ./my-repo # Change to the correct directory
echo "Publishing pre-release version..."
# Add your build steps here, such as npm install, npm build, etc.
# Then, use your NPM token for publishing
npm install
npm run build
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk6-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish SDK7 Package
name: Publish SDK6 Package

on:
push:
Expand Down

0 comments on commit 234e342

Please sign in to comment.