fix:fromPen-type #15
Workflow file for this run
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 to npm on release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- name: Install dependencies | |
run: | | |
pnpm i | |
- name: Build | |
run: | | |
pnpm build | |
- name: Extract version from tag | |
id: extract_version | |
run: echo "::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}" | |
- name: Update core version | |
run: | | |
cd dist/core | |
npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
- name: Update meta2d.js version | |
run: | | |
cd dist/meta2d.js | |
npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update activity version | |
# run: | | |
# cd dist/activity-diagram | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update chart version | |
# run: | | |
# cd dist/chart-diagram | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update class version | |
# run: | | |
# cd dist/class-diagram | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update flow version | |
# run: | | |
# cd dist/flow-diagram | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update form version | |
# run: | | |
# cd dist/form-diagram | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update fta version | |
# run: | | |
# cd dist/fta-diagram | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update le5le-charts version | |
# run: | | |
# cd dist/le5le-charts | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update sequence version | |
# run: | | |
# cd dist/sequence-diagram | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update plugin-mind-collapse version | |
# run: | | |
# cd dist/plugin-mind-collapse | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update plugin-mind-core version | |
# run: | | |
# cd dist/plugin-mind-core | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update svg version | |
# run: | | |
# cd dist/svg | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
# - name: Update utils version | |
# run: | | |
# cd dist/utils | |
# npm version ${{ steps.extract_version.outputs.VERSION }} --no-git-tag-version | |
- name: Publish core | |
run: | | |
cd dist/core | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish meta2d.js | |
run: | | |
cd dist/meta2d.js | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish activity | |
run: | | |
cd dist/activity-diagram | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish chart | |
run: | | |
cd dist/chart-diagram | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish class | |
run: | | |
cd dist/class-diagram | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish flow | |
run: | | |
cd dist/flow-diagram | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish form | |
run: | | |
cd dist/form-diagram | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish fta | |
run: | | |
cd dist/fta-diagram | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish le5le-charts | |
run: | | |
cd dist/le5le-charts | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish sequence | |
run: | | |
cd dist/sequence-diagram | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish plugin-mind-collapse | |
run: | | |
cd dist/plugin-mind-collapse | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish plugin-mind-core | |
run: | | |
cd dist/plugin-mind-core | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish svg | |
run: | | |
cd dist/svg | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true | |
- name: Publish utils | |
run: | | |
cd dist/utils | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
continue-on-error: true |