From 64f2e7bf4b5c05cb5ae8d3c8c101d7eae700248b Mon Sep 17 00:00:00 2001
From: Pierre-Louis Mercereau <24897252+plmercereau@users.noreply.github.com>
Date: Tue, 24 Sep 2019 16:09:31 +0200
Subject: [PATCH] chore: second attempt github actions
affects: @platyplus/platyplus
---
.github/workflows/npmpublish.yml | 6 +++---
frontend/platyplus/src/pages/Profile.vue | 2 +-
package.json | 3 ++-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml
index f4f760e2..dd43d95e 100644
--- a/.github/workflows/npmpublish.yml
+++ b/.github/workflows/npmpublish.yml
@@ -20,8 +20,8 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- - run: yarn global add lerna
- - run: lerna bootstrap
+ - run: yarn install
+ - run: ls
publish-npm:
needs: build
@@ -32,7 +32,7 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- - run: lerna publish from-git
+ - run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
diff --git a/frontend/platyplus/src/pages/Profile.vue b/frontend/platyplus/src/pages/Profile.vue
index c42439d5..49835f4e 100644
--- a/frontend/platyplus/src/pages/Profile.vue
+++ b/frontend/platyplus/src/pages/Profile.vue
@@ -1,6 +1,6 @@
q-page(v-if="$authenticated" padding class="justify-center")
- div Profile page
+ div Profile page.
diff --git a/package.json b/package.json
index 4bc7e518..289cf496 100644
--- a/package.json
+++ b/package.json
@@ -16,10 +16,11 @@
"lint-fix": "eslint . --ext .js,.ts --fix",
"pre-commit": "yarn lint-staged",
"pre-push": "yarn format-check",
- "postinstall": "yarn build && lerna link",
+ "postinstall": "lerna bootstrap",
"test": "lerna run test --parallel",
"typecheck": "lerna run typecheck",
"release": "lerna version",
+ "publish": "lerna publish from-git",
"console": "lerna run --scope @platyplus/graphql-engine console",
"dev": "concurrently \"dotenv -- docker-compose -f docker-compose.yml -f docker-compose-dev.yml up --build\" \"yarn run console\"",
"docker:build-published": "echo 'TODO: tag' && lerna exec 'test -e $PWD/Dockerfile-published && docker build -t $(echo $LERNA_PACKAGE_NAME | cut -c 2-) -f $PWD/Dockerfile-published $LERNA_ROOT_PATH || exit 0'",