Publish #92
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 | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9.0.6 | |
run_install: false | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
registry-url: 'https://npm.pkg.github.com/' | |
node-version: 20 | |
cache: 'pnpm' | |
scope: '@dpc-sdp' | |
- name: Install Dependencies | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
run: pnpm install --frozen-lockfile | |
- name: Publish release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "SDP Deploy" | |
pnpm config set access public | |
pnpm run release:publish --yes |