[Snapshots]: Deploying snapshot for changeset-snapshot/htmx #2
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: Deploy Snapshots | |
on: | |
pull_request_target: | |
types: | |
- closed | |
branches: | |
- 'changeset-snapshot/**' | |
env: | |
CI: true | |
run-name: '[Snapshots]: Deploying snapshot for ${{ github.ref_name }}' | |
jobs: | |
snapshot-build: | |
if: github.event.pull_request.merged == true | |
name: Snapshot | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: changeset-snapshot/htmx | |
- name: Install pnpm package manager | |
id: install-pnpm | |
uses: ./.github/actions/pnpm | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Install NodeJs | |
id: install-node | |
uses: ./.github/actions/node | |
- name: Build Packages | |
id: build-packages | |
uses: ./.github/actions/build | |
- name: Setup CI Git User | |
id: setup-ci-git-user | |
uses: ./.github/actions/npmrc | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
- name: Create Snapshot | |
uses: changesets/action@v1.4.5 | |
with: | |
setupGitUser: false | |
#version: pnpm snapshot:version | |
publish: pnpm snapshot:publish | |
title: "chore(release): Snapshot Release" | |
commit: "chore(release): deploy snapshot release" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.GH_TOKEN }} |