Skip to content

chore: update gh actions versions and pnpm #75

chore: update gh actions versions and pnpm

chore: update gh actions versions and pnpm #75

Workflow file for this run

name: Publish NPM Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
environment: CI
env:
TENDERLY_ACCESS_KEY: ${{secrets.TENDERLY_ACCESS_KEY}}
TENDERLY_ACCOUNT_NAME: ${{secrets.TENDERLY_ACCOUNT_NAME}}
TENDERLY_PROJECT_NAME: ${{secrets.TENDERLY_PROJECT_NAME}}
TENDERLY_GET_BY_PROJECT_NAME: ${{secrets.TENDERLY_GET_BY_PROJECT_NAME}}
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm build
- run: pnpm test
publish-npm:
needs: build
runs-on: ubuntu-latest
environment: CI
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run publish
commit: "chore(release): npm release"
title: "Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}