Skip to content

Commit

Permalink
chore: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hongfaqiu committed Sep 21, 2024
1 parent 7eced26 commit e9db070
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: pnpm lerna version --yes
- run: pnpm lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"name": "root",
"private": true,
"npmClient": "pnpm",
"publishConfig": {
"access": "public"
},
"workspaces": [
"packages/*"

],
"scripts": {
"dev": "turbo dev --filter=!example",
Expand Down
2 changes: 1 addition & 1 deletion packages/TIFFImageryProvider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
"tslib": "^2.5.0",
"typescript": "4.8.4"
},
"gitHead": "056eb423ac4dee49acdae834c413869db9a47e9a"
"gitHead": "7eced26578ea4d8eda5fccd5dd5e315ee02c9012"
}

0 comments on commit e9db070

Please sign in to comment.