Przeglądaj źródła

Update github actions

pull/544/head
Guillaume Vincent 4 lat temu
rodzic
commit
98986e9a11
9 zmienionych plików z 228 dodań i 29 usunięć
  1. +39
    -0
      .github/workflows/build-lesspass-pure-package.yml
  2. +29
    -0
      .github/workflows/deploy-lesspass-crypto-package.yml
  3. +29
    -0
      .github/workflows/deploy-lesspass-entropy-package.yml
  4. +29
    -0
      .github/workflows/deploy-lesspass-fingerprint-package.yml
  5. +9
    -9
      .github/workflows/deploy-lesspass-package.yml
  6. +22
    -0
      .github/workflows/deploy-lesspass-pure-package.yml
  7. +29
    -0
      .github/workflows/deploy-lesspass-render-password-package.yml
  8. +17
    -20
      packages/deploy
  9. +25
    -0
      yarn.lock

+ 39
- 0
.github/workflows/build-lesspass-pure-package.yml Wyświetl plik

@@ -0,0 +1,39 @@
name: build-lesspass-pure-package

on:
push:
paths:
- "packages/lesspass-pure/**"
- "!packages/lesspass-pure/dist/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: git hash
run: |
git rev-parse HEAD
- name: test lesspass-pure package
run: |
ls packages/lesspass-pure/dist
yarn install
yarn workspace lesspass-pure run test

build-and-commit-and-push:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: build lesspass-pure package
run: |
yarn install
yarn workspace lesspass-pure run build
- name: commit build and push
run: |
git config --global user.name 'botsito'
git config --global user.email 'botsito@lesspass.com'
git commit -am "Auto build for lesspass-pure"
git push

+ 29
- 0
.github/workflows/deploy-lesspass-crypto-package.yml Wyświetl plik

@@ -0,0 +1,29 @@
name: deploy-lesspass-crypto-package

on:
push:
paths:
- "packages/lesspass-crypto/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test lesspass-crypto package
run: |
yarn install
yarn workspace lesspass-crypto run test

deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: deploy lesspass-crypto package
run: |
cd packages
./deploy lesspass-crypto
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

+ 29
- 0
.github/workflows/deploy-lesspass-entropy-package.yml Wyświetl plik

@@ -0,0 +1,29 @@
name: deploy-lesspass-entropy-package

on:
push:
paths:
- "packages/lesspass-entropy/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test lesspass-entropy package
run: |
yarn install
yarn workspace lesspass-entropy run test

deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: deploy lesspass-entropy package
run: |
cd packages
./deploy lesspass-entropy
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

+ 29
- 0
.github/workflows/deploy-lesspass-fingerprint-package.yml Wyświetl plik

@@ -0,0 +1,29 @@
name: deploy-lesspass-fingerprint-package

on:
push:
paths:
- "packages/lesspass-fingerprint/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test lesspass-fingerprint package
run: |
yarn install
yarn workspace lesspass-fingerprint run test

deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: deploy lesspass-fingerprint package
run: |
cd packages
./deploy lesspass-fingerprint
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/deploy-packages.yml → .github/workflows/deploy-lesspass-package.yml Wyświetl plik

@@ -1,29 +1,29 @@
name: deploy-packages
name: deploy-lesspass-package

on:
push:
paths:
- "packages/**"
- "packages/lesspass/**"

jobs:
test-packages:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test packages
- name: test lesspass package
run: |
yarn install
yarn test
yarn workspace lesspass run test

deploy-packages:
deploy:
runs-on: ubuntu-latest
needs: test-packages
needs: test
steps:
- uses: actions/checkout@v2
- name: deploy packages
- name: deploy lesspass package
run: |
cd packages
./deploy
./deploy lesspass
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

+ 22
- 0
.github/workflows/deploy-lesspass-pure-package.yml Wyświetl plik

@@ -0,0 +1,22 @@
name: deploy-lesspass-pure-package

on:
push:
paths:
- "packages/lesspass-pure/dist/**"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: git hash
run: |
git rev-parse HEAD
- name: deploy lesspass-pure package
run: |
cd packages
./deploy lesspass-pure
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

+ 29
- 0
.github/workflows/deploy-lesspass-render-password-package.yml Wyświetl plik

@@ -0,0 +1,29 @@
name: deploy-lesspass-render-password-package

on:
push:
paths:
- "packages/lesspass-render-password/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test lesspass-render-password package
run: |
yarn install
yarn workspace lesspass-render-password run test

deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: deploy lesspass-render-password package
run: |
cd packages
./deploy lesspass-render-password
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

+ 17
- 20
packages/deploy Wyświetl plik

@@ -1,24 +1,21 @@
#!/usr/bin/env bash

function check_env_variables_are_setted {
if [ -z "${NPM_TOKEN}" ]; then
echo "Need to set NPM_TOKEN env variable to release node modules"
exit 1
fi
}
if [ -z "${NPM_TOKEN}" ]; then
echo "Need to set NPM_TOKEN env variable to release node modules"
exit 1
fi

check_env_variables_are_setted
if [ $# -eq 0 ]; then
echo "No arguments provided"
exit 1
fi

function push_packages_on_npm {
touch ~/.npmrc
grep --fixed-strings --line-regexp --silent "//registry.npmjs.org/:_authToken=$NPM_TOKEN" ~/.npmrc || echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
projects="lesspass lesspass-crypto lesspass-entropy lesspass-fingerprint lesspass-pure lesspass-render-password"
for project in ${projects}
do
pushd ${project}
yarn publish --non-interactive
popd
done
}

push_packages_on_npm
touch ~/.npmrc
grep --fixed-strings --line-regexp --silent "//registry.npmjs.org/:_authToken=$NPM_TOKEN" ~/.npmrc || echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
for project in $@
do
pushd ${project}
yarn publish --non-interactive
pwd
popd
done

+ 25
- 0
yarn.lock Wyświetl plik

@@ -8991,6 +8991,31 @@ lesspass-fingerprint@9.0.0:
dependencies:
lesspass-crypto "9.0.0"

lesspass-pure@9.1.9:
version "9.1.9"
resolved "https://registry.yarnpkg.com/lesspass-pure/-/lesspass-pure-9.1.9.tgz#c261db79b9c80665e96dc537d18481cf6d76cb99"
integrity sha512-aa87QKbeEYSzyEzeBPT99BpHhCFQNCfC9UBNxGrftQEwWyed/S7CaWpg+IzSX7BCmiyvPPyEtm/DDeSFCE1cbg==
dependencies:
"@oslab/atob" "^0.1.0"
"@oslab/btoa" "^0.1.0"
awesomplete "^1.1.5"
axios "^0.19.0"
balloon-css "^1.0.3"
bootstrap "^4.3.1"
copy-text-to-clipboard "^2.1.1"
core-js "^3.1.2"
font-awesome "^4.7.0"
jwt-decode "^2.2.0"
lesspass "^9.0.0"
lodash "^4.17.15"
vue "^2.6.10"
vue-polyglot "^2.0.1"
vue-router "^3.1.3"
vuejs-paginate "^2.1.0"
vuex "^3.1.1"
vuex-persistedstate "^2.5.4"
vuex-router-sync "^5.0.0"

lesspass-pure@latest:
version "9.0.0"
resolved "https://registry.yarnpkg.com/lesspass-pure/-/lesspass-pure-9.0.0.tgz#33030839e3bce7acc782a8cb8204152e2a29fd1d"


Ładowanie…
Anuluj
Zapisz