From f20ff2de95f881f792746c231148483a29440267 Mon Sep 17 00:00:00 2001 From: Ivan Peshev Date: Fri, 22 Nov 2019 09:17:51 +0200 Subject: [PATCH] Shippable release (#81) * chore: resolve conflicts * chore: shippable release * chore: secrets * chore: ignore scripts --- .github/workflows/branch_push_workflow.yml | 42 ---------------------- package.json | 2 +- shippable.yml | 41 +++++++++++++++++++++ 3 files changed, 42 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/branch_push_workflow.yml create mode 100644 shippable.yml diff --git a/.github/workflows/branch_push_workflow.yml b/.github/workflows/branch_push_workflow.yml deleted file mode 100644 index 1c971437..00000000 --- a/.github/workflows/branch_push_workflow.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Branch push - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x] - - steps: - - name: Checkout branch - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Install - run: | - npm install - - name: Lint - run: npm run lint - - name: Build - run: | - npm run build-package - - name: Test - run: | - npm run test - npm run locale-tests - - name: Release - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' - env: - GITHUB_ACTION: true - GH_TOKEN: ${{ secrets.GH_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - git reset --hard HEAD - git checkout "${GITHUB_REF:11}" - npm run semantic-release diff --git a/package.json b/package.json index ad0bfea5..a0d30dea 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "dependencies": {}, "devDependencies": { "@telerik/eslint-config": "^1.0.0", - "@progress/kendo-package-tasks": "^3.0.0", + "@progress/kendo-package-tasks": "^3.0.19", "@telerik/semantic-prerelease": "^1.3.3", "cldr-data": "latest", "cz-conventional-changelog": "^1.1.5", diff --git a/shippable.yml b/shippable.yml new file mode 100644 index 00000000..0780b202 --- /dev/null +++ b/shippable.yml @@ -0,0 +1,41 @@ +language: node_js + +node_js: + - 10 + +env: + global: + - PATH=$PATH:./node_modules/.bin + - secure: IU0V0Y57y7dTRnA+Ea/LC7Efx/zznulLsl4qWoH1etm8/l3JzZCiJlXJ8wJk1i6X0gzGLWlkO+710DJyWuajchUP0IfD77LwFVKCazybSnn3tS2r2o/EgUB+iysI1yPyAKomqsFixtVyv+qwGdCjwnmE8NxSC3iSZ1FhBc0/w5dtz5e6ateOHgkcoREl1K87al9UsTljcRQph1LMgkQqv4LlVxDQ9TqpgMRO0nThfgZybvs1MYmI9n/1QzlmOQGHCvsyiY/eUmXy/Dn8LBqRs/fYaOTyqMUEmMCB80TRtgasF702boAHrPkfjbmjD5Ca1uKMYzpMqbXDr8AVXe0yxg== +build: + # http://docs.shippable.com/ci/shippableyml/#ci + ci: + - npm install --no-audit + - npm run lint + - npm run test + - npm run locale-tests + - npm run build-package + on_success: + - npx ci-semantic-release + +resources: + - name: kendo-intl-repo + type: gitRepo + integration: github-telerik + versionTemplate: + sourceName: telerik/kendo-intl + branch: develop +jobs: + - name: kendo-intl-publish_develop_as_latest + type: runSh + steps: + - IN: kendo-intl-repo + switch: off + - IN: kendo-intl_ciRepo + switch: off + - TASK: + name: kendo-intl-publish_develop + script: + - ssh-add $KENDOINTLREPO_KEYPATH + - cd $KENDOINTLREPO_STATE && git checkout master && git pull --rebase + - npm install @telerik/semantic-prerelease@1 --no-save && npx release-master