Skip to content

Commit

Permalink
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 5981fc8
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
release:
name: publish to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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: Release check&build
run: pnpm check
- name: Setup npm auth
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" >> ~/.npmrc
npm whoami
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Registry release
run: pnpm publish -r --ignore-scripts --access public --filter "@location-state/*"
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "location-state",
"private": true,
"version": "0.0.0-alpha",
"description": "A lightweight state management library that saves and restores state based on history.",
"main": "index.js",
"engines": {
"pnpm": "8.x",
"npm": "please_use_pnpm_instead"
Expand Down
4 changes: 4 additions & 0 deletions packages/location-state-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "@location-state/core",
"version": "0.0.0-alpha",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/recruit-tech/location-state",
"files": [
"dist",
"types",
Expand Down
4 changes: 4 additions & 0 deletions packages/location-state-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "@location-state/next",
"version": "0.0.0-alpha",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/recruit-tech/location-state",
"files": [
"dist",
"types",
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 5981fc8

Please sign in to comment.