fix: yaml #30
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 package to registry | |
on: | |
push: | |
branches: | |
- main | |
env: | |
SEMVER_TYPE: patch | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- run: git config --global core.symlinks false | |
shell: bash | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git make jq curl wget | |
- name: generate README | |
run: | | |
npx msa-tool generate -u ${{ secrets.FC_SERVICE_URL }} | |
env: | |
GITHUB_SHA: ${{ github.sha }} | |
GITHUB_EVENT_BEFORE: ${{ github.event.before }} | |
- name: List files | |
run: | | |
ls -la | |
- name: generate publish.yaml | |
run: | | |
npx msa-tool publish | |
- name: install s | |
run: | | |
npm i @serverless-devs/[email protected] -g | |
- name: s registry login | |
run: | | |
s registry login --token ${{ secrets.ALIBABA_REGISTRY_V3_PUBLISH_TOKEN }} | |
- name: release prod | |
run: | | |
s registry publish |