chore: re-bump version #157
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: "Upload To Test Store" | |
env: | |
NODE_OPTIONS: "--max_old_space_size=6144" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
check-version: | |
name: Check version by local workflow | |
uses: ./.github/workflows/version-check.yml | |
upload: | |
if: "!contains(toJSON(github.event.commits.*.message) , '[skip ci]')" | |
name: Upload to test store | |
needs: check-version | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dir: ${{ fromJSON(needs.check-version.outputs.folders) }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "pnpm" | |
- run: npm add -g @antfu/ni | |
- run: nci | |
- name: Publish to NPM | |
if: "contains(matrix.dir , 'packages/')" | |
run: | | |
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}" | |
VERSION=$(cat version | awk '{$1=$1;print}') | |
echo "publish version ${VERSION}" | |
cd ${{ matrix.dir }} | |
pnpm publish --access public --no-git-checks | |
- name: Upload to test store | |
uses: blocklet/action-workflow@v1 | |
if: "contains(matrix.dir , 'blocklets/')" | |
env: | |
COMPONENT_STORE_URL: ${{ secrets.STORE_ENDPOINT_TEST }} | |
with: | |
deps-server-version: beta | |
skip-deps: false | |
skip-upload: false | |
skip-deploy: true | |
skip-release: true | |
bundle-command: pnpm run bundle | |
working-directory: ${{ matrix.dir }} | |
store-endpoint: ${{ secrets.STORE_ENDPOINT_TEST }} | |
store-access-token: ${{ secrets.STORE_ACCESS_TOKEN_TEST }} | |
slack-webhook: ${{ secrets.SLACK_WEBHOOK }} |