Skip to content

Commit

Permalink
add snapshot CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Sep 5, 2024
1 parent 60453ef commit a270c78
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 57 deletions.
21 changes: 21 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Setup
description: Perform standard setup and install dependencies using pnpm.
inputs:
node-version:
description: The version of Node.js to install
required: true
default: 20.14.0

runs:
using: composite
steps:
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install node
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ inputs.node-version }}
- name: Install dependencies
shell: bash
run: pnpm install
56 changes: 0 additions & 56 deletions .github/workflows/ci.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Snapshot

on:
pull_request:
branches: [main]

permissions: {}

jobs:
snapshot:
name: Snapshot
if: github.repository_owner == 'Effect-Ts'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/setup
- name: Build package
run: pnpm build
- name: Create snapshot
id: snapshot
run: pnpx [email protected] publish --pnpm --comment=off ./packages/*
5 changes: 4 additions & 1 deletion packages/create-effect-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"type": "module",
"license": "MIT",
"description": "Create Effect-powered applications with a single command",
"bin": {
"create-effect-app": "./dist/bin.cjs"
},
"engines": {
"node": ">=20.14.0"
},
Expand Down Expand Up @@ -35,4 +38,4 @@
"tar": "^7.4.3",
"tsup": "^8.2.4"
}
}
}

0 comments on commit a270c78

Please sign in to comment.