design-library v2.9.2 #135
This file contains hidden or 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: "Design Library: Release Dev Version" | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - design-library/** | |
| - .github/workflows/design-library-release-dev-version.yml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| CI: true | |
| jobs: | |
| test: | |
| uses: ./.github/workflows/design-library-tests.yml | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version-file: design-library/.node-version | |
| registry-url: "https://registry.npmjs.org" | |
| cache: "pnpm" | |
| cache-dependency-path: design-library/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| working-directory: design-library | |
| - name: Resolve version | |
| id: vars | |
| run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
| - name: Restore cached build outputs | |
| uses: actions/cache/restore@v3 | |
| with: | |
| fail-on-cache-miss: true | |
| path: | | |
| design-library/dist | |
| design-library/dist_css | |
| design-library/dist_types | |
| design-library/css-package/dist | |
| design-library/css-package/dist_css | |
| design-library/css-package/dist_types | |
| key: design-library-dist-${{ env.sha_short }} | |
| - name: Publish `@bcc-code/design-library-vue` | |
| run: | | |
| npm version 0.0.0-dev.${{ env.sha_short }} --force --no-git-tag-version | |
| npm publish --tag dev | |
| working-directory: design-library | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Publish `@bcc-code/design-library` | |
| run: | | |
| npm version 0.0.0-dev.${{ env.sha_short }} --force --no-git-tag-version | |
| npm publish --tag dev | |
| working-directory: design-library/css-package | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |