Rename @osdk/widget-manifest-vite-plugin to @osdk/widget.vite-plugin.… #851
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 | |
env: | |
DO_NOT_TRACK: 1 | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
- next | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') }} | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Publish packages | |
run: pnpm ci:publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Save publish data | |
uses: actions/upload-artifact@v4 | |
with: | |
name: published-packages | |
path: pnpm-publish-summary.json | |
# snapshot: | |
# name: Snapshot | |
# needs: release | |
# if: ${{ !failure() && !cancelled() }} # when none of the needed jobs fail or are cancelled (skipped or successful jobs are ok). | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Repo | |
# uses: actions/checkout@v4 | |
# - name: Setup PNPM | |
# uses: pnpm/action-setup@v4 | |
# with: | |
# version: 8.7.4 | |
# - name: Setup Node.js environment | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 18 | |
# registry-url: 'https://registry.npmjs.org' | |
# cache: "pnpm" | |
# - name: Install dependencies | |
# run: pnpm install | |
# - name: Build code | |
# run: pnpm exec turbo run build | |
# - name: Update versions for snapshots | |
# run: pnpm exec changeset version --snapshot ${GITHUB_REF_NAME//\//__} | |
# - name: Make sure code is up to date | |
# run: pnpm exec turbo run postVersioning | |
# - name: Rebuild things | |
# run: pnpm exec turbo run build | |
# - name: Publish results | |
# run: pnpm exec changeset publish --no-git-tag --tag next-${GITHUB_REF_NAME//\//__} | |
# env: | |
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |