Merge pull request #23 from kumaresan-subramani/patch-23
Resolve gitlap repo cloning issue
This commit is contained in:
Коммит
9226acd75d
|
@ -4,8 +4,6 @@
|
|||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
types: [opened, closed, edited, synchronize]
|
||||
|
@ -27,28 +25,9 @@ jobs:
|
|||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: set environment variables
|
||||
uses: allenevans/set-env@v1.0.0
|
||||
with:
|
||||
MY_ENV_VAR: 'my value'
|
||||
GIT_USER: ${{ secrets.WEB_GITLAB_USER }}
|
||||
GIT_TOKEN: ${{ secrets.WEB_GITLAB_TOKEN }}
|
||||
GIT_MAIL: ${{ secrets.USER_MAIL }}
|
||||
IS_TEMP: github.event.pull_request.merged
|
||||
|
||||
|
||||
- name: Install
|
||||
run: npm i
|
||||
|
||||
- name: Get changed files
|
||||
run: |
|
||||
git diff --name-only HEAD^ HEAD
|
||||
|
||||
- name: Publish
|
||||
run: npm run publish
|
||||
env:
|
||||
GIT_USER: ${{ secrets.WEB_GITLAB_USER }}
|
||||
GIT_TOKEN: ${{ secrets.WEB_GITLAB_TOKEN }}
|
||||
GIT_MAIL: ${{ secrets.USER_MAIL }}
|
||||
check: 'hello'
|
||||
if: github.event.pull_request.merged == true
|
||||
- name: Test
|
||||
run: npm run test
|
||||
|
|
Загрузка…
Ссылка в новой задаче