@@ -1,13 +1,10 @@ | |||||
name: lesspass-web-extension-publish | name: lesspass-web-extension-publish | ||||
on: | on: | ||||
workflow_run: | |||||
workflows: ["lesspass-web-extension-test"] | |||||
branches: [main] | |||||
types: | |||||
- completed | |||||
push: | |||||
paths: | |||||
- "packages/lesspass-web-extension/**" | |||||
jobs: | jobs: | ||||
publish: | publish: | ||||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |||||
runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
steps: | steps: | ||||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | ||||
@@ -1,18 +0,0 @@ | |||||
name: lesspass-web-extension-test | |||||
on: | |||||
push: | |||||
paths: | |||||
- "packages/lesspass-web-extension/**" | |||||
pull_request: | |||||
paths: | |||||
- "packages/lesspass-web-extension/**" | |||||
jobs: | |||||
test: | |||||
runs-on: ubuntu-18.04 | |||||
steps: | |||||
- uses: actions/checkout@v2 | |||||
- uses: actions/setup-node@v2 | |||||
with: | |||||
node-version: "14" | |||||
- run: yarn install | |||||
- run: yarn workspace lesspass-web-extension run test |
@@ -7,7 +7,6 @@ | |||||
"scripts": { | "scripts": { | ||||
"start": "cd extension && web-ext run", | "start": "cd extension && web-ext run", | ||||
"build": "rm -rf ./extension/dist && mkdir ./extension/dist && cp -r ./node_modules/lesspass-pure/dist/ ./extension", | "build": "rm -rf ./extension/dist && mkdir ./extension/dist && cp -r ./node_modules/lesspass-pure/dist/ ./extension", | ||||
"test": "echo 0", | |||||
"release": "yarn release:amo && yarn release:cws", | "release": "yarn release:amo && yarn release:cws", | ||||
"release:amo": "cd extension && web-ext-submit", | "release:amo": "cd extension && web-ext-submit", | ||||
"release:cws": "cd extension && webstore upload --auto-publish" | "release:cws": "cd extension && webstore upload --auto-publish" | ||||