[stonecrop] publish packages to NPM #45
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 Packages | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
publish-gpr: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- uses: actions/setup-node@v4 | |
name: Install Node.js | |
with: | |
cache-dependency-path: '**/config/rush/pnpm-lock.yaml' | |
registry-url: https://registry.npmjs.org/ | |
- name: Set Git User | |
run: | | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
- name: Install Rush | |
run: node common/scripts/install-run-rush.js install | |
- name: Bump Version for Packages | |
run: node common/scripts/install-run-rush.js version --bump | |
- name: Publish Packages via Rush | |
run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --version-policy stonecrop --target-branch development --add-commit-details --set-access-level=public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |