Repository navigation
Merge pull request #27 from docusign/dependabot/npm_and_yarn/postcss-… #22
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
| # SPDX-FileCopyrightText: 2026 Docusign, Inc. | |
| # SPDX-License-Identifier: MIT | |
| # Publishes packages to npm using Changesets. | |
| # | |
| # On every push to main, this either: | |
| # - opens/updates a "Version Packages" PR that applies pending changesets, or | |
| # - if such a PR was just merged, publishes the bumped packages to npm. | |
| # | |
| # Requirements before enabling: | |
| # - Set the NPM_TOKEN secret (automation token for the publishing npm account). | |
| # - Confirm the package scope is one Docusign owns on the public npm registry | |
| # (packages currently use the `@pangaea-g11n/*` scope) and that each publishable | |
| # package sets an appropriate `publishConfig.access` (currently `restricted`). | |
| name: Release | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| concurrency: | |
| group: release-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: .node-version | |
| cache: yarn | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Create Release PR or publish | |
| uses: changesets/action@v1 | |
| with: | |
| publish: yarn release | |
| commit: 'chore: release + bump versions' | |
| title: 'chore: release + bump versions' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |