Skip to content

Commit

Permalink
update pipeline to check changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
tichon29 committed Jan 21, 2021
1 parent 1644ba6 commit a3c3927
Showing 1 changed file with 35 additions and 33 deletions.
68 changes: 35 additions & 33 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,31 @@ jobs:
with:
token: ${{ secrets.ACCESS_TOKEN }}
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-mollitia-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: gitlog
run: git --no-pager log
# - uses: actions/setup-node@v1
# with:
# node-version: '12.x'
# registry-url: 'https://registry.npmjs.org'
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-mollitia-node-modules
# with:
# path: '**/node_modules'
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
# - name: Install
# run: npm install
# - name: Lint
# run: npm run lint
# - name: Build
# run: npm run build
# - name: Test
# run: npm run test
# - name: Env
# id: env
# run: |
Expand All @@ -52,13 +54,13 @@ jobs:
# echo ::set-output name=SHOULD_RELEASE::true
# echo current version is $CURRENT
# fi
- name: Release
# if: github.event_name == 'push' && steps.env.outputs.SHOULD_RELEASE == 'true'
run: npx release-it --ci --verbose --disable-metrics --increment=0.0.1
env:
GIT_AUTHOR_NAME: Github Action
GIT_AUTHOR_EMAIL: action@github.com
GIT_COMMITTER_NAME: Github Action
GIT_COMMITTER_EMAIL: action@github.com
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Release
# if: github.event_name == 'push' && steps.env.outputs.SHOULD_RELEASE == 'true'
# run: npx release-it --ci --verbose --disable-metrics --increment=${{steps.env.outputs.VERSION}}
# env:
# GIT_AUTHOR_NAME: Github Action
# GIT_AUTHOR_EMAIL: action@github.com
# GIT_COMMITTER_NAME: Github Action
# GIT_COMMITTER_EMAIL: action@github.com
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a3c3927

Please sign in to comment.