Skip to content

Commit

Permalink
add version, pre release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AkifumiSato committed Sep 3, 2023
1 parent 6a443fd commit e75c9aa
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PR Release

on:
pull_request:
branches: [main]

jobs:
pr-release:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install and cache nodejs
uses: actions/setup-node@v3
with:
node-version: '18'
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Install packages
run: pnpm i --ignore-scripts
- name: Build
run: pnpm build --filter='./packages/*'
- name: Publish
uses: kotarella1110/pr-voyager@v0
with:
publish: pnpm publish -r --ignore-scripts --access public --filter "@location-state/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
"keywords": [],
"license": "MIT",
"scripts": {
"dts": "turbo dts",
"build": "turbo build",
"test": "turbo test",
"typecheck": "turbo typecheck",
"lint": "turbo lint",
"test": "turbo test",
"check": "turbo dts typecheck lint build test",
"prepare": "husky install"
},
Expand Down
1 change: 1 addition & 0 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "test-utils",
"version": "0.0.0",
"private": true,
"main": "./src/index.ts",
"types": "./src/index.ts",
Expand Down
1 change: 0 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"dependsOn": ["dts"]
},
"test": {
"dependsOn": ["build"],
"outputs": ["coverage/**"]
}
},
Expand Down

0 comments on commit e75c9aa

Please sign in to comment.