Skip to content

Commit

Permalink
Bump github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Joozty committed Feb 28, 2020
1 parent 94b8d6a commit 6014c78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: API Client publish
name: Publish GPR

on:
release:
Expand All @@ -14,10 +14,12 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Git Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
ref: master

- name: Lint & Build
uses: actions/setup-node@v1
uses: actions/setup-node@v1.4.0
with:
node-version: '12.x'
registry-url: https://npm.pkg.github.com/
Expand All @@ -30,14 +32,13 @@ jobs:
run: npm run version ${{ steps.get_version.outputs.VERSION }} -- --git-tag-version=false --force-publish --yes

- name: Create Pull Request
uses: peter-evans/create-pull-request@v1.7.3
uses: peter-evans/create-pull-request@v2.4.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Bump version ${{ steps.get_version.outputs.VERSION }}
title: Bump version ${{ steps.get_version.outputs.VERSION }}
body: Bump package.json version
branch: bump-version-${{ steps.get_version.outputs.VERSION }}
base: master

- name: Publish package
run: npm run publish -- --registry='https://npm.pkg.github.com' --yes
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:

steps:
- run: echo ::set-env name=NPM_TOKEN::${{secrets.GITHUB_TOKEN}}
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v1.4.0
with:
node-version: '12.x'
- name: npm install & test
Expand Down

0 comments on commit 6014c78

Please sign in to comment.