chore: release 0.3.9 #50
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: Release | |
on: | |
push: | |
branches: | |
- foobar | |
defaults: | |
run: | |
working-directory: "packages/npm/send" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
token: ${{ secrets.CANDLE_ADMIN_PAC }} | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Modify Git Config | |
run: | | |
git remote -v | |
# git remote set-url origin https://candle-admin:${{ secrets.CANDLE_ADMIN_PAC }}@github.com/candlefinance/oss.git | |
git remote set-url origin https://${{ secrets.CANDLE_ADMIN_PAC }}@github.com/candlefinance/oss | |
git remote -v | |
- name: Initialize the Npm Config | |
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Build package | |
run: yarn prepare | |
- name: Publish package | |
run: yarn release | |
env: | |
GITHUB_TOKEN: ${{ secrets.CANDLE_ADMIN_PAC }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |