release: [email protected] #23
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 Package | |
on: | |
push: | |
tags: | |
- "pages-components*" # Push events to matching pages-components*, i.e. [email protected] | |
jobs: | |
publish: | |
# prevents this action from running on forks | |
if: github.repository == 'yext/js' | |
runs-on: ubuntu-latest | |
environment: Release | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node version to 20.x | |
uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
registry-url: https://registry.npmjs.org/ | |
cache: "pnpm" | |
- name: Install deps | |
run: pnpm install | |
- name: Publish package | |
run: pnpm run ci-publish ${{ github.ref_name }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |