Merge pull request #25 from apathyjade/development #129
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: jelper-publish | |
on: | |
push: | |
branches: | |
- master | |
- beta | |
env: | |
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | |
LOGER: none | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: build | |
run: | | |
npm install -g pnpm | |
npm install -g @microsoft/rush | |
rush update | |
rush build | |
- name: publish beta | |
if: ${{ github.ref_name == 'beta'}} | |
run: rush publish --apply | |
- name: publish | |
if: ${{ github.ref_name == 'master'}} | |
run: | | |
rush publish -p --include-all --tag=latest |