Skip to content

Commit

Permalink
Refactor release workflow to install pnpm before dependencies and upd…
Browse files Browse the repository at this point in the history
…ate package.json to set private to false
  • Loading branch information
JackDevAU committed Jan 17, 2025
1 parent 1784436 commit 34f7af8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,25 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

# Setup pnpm and install dependencies
- name: Install pnpm
uses: pnpm/action-setup@v4

# Setup Node.js 20.x
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

# Create a release pull request or publish to npm
# Setup pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4

# Install dependencies
- name: Install Dependencies
run: pnpm install

# Build and release
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This script should build and publish your packages
publish: pnpm release
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clean-nextjs",
"private": true,
"private": false,
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
Expand Down

0 comments on commit 34f7af8

Please sign in to comment.