@@ -11,39 +11,39 @@ jobs:
1111 name : Keep Latest
1212 runs-on : ubuntu-latest
1313 steps :
14- - name : Checkout
15- uses : actions/checkout@v1
16- with : { fetch-depth: 1 }
17- - name : Install Node.js
18- uses : actions/setup-node@v1
19- with : { node-version: 12.x }
20- - name : Install Packages
21- run : npm install
22- - name : Check ESLint Version
23- uses : ./.github/actions/get-eslint-versions
24- id : versions
25- - name : Test
26- run : npm test
27- if : success() && steps.versions.outputs.installed != steps.versions.outputs.published
28- - name : Bump Version
29- run : |
30- if ! git diff --exit-code --quiet
31- then
32- git config user.name "${GITHUB_ACTOR}"
33- git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
34- git add .
35- git commit -m "🔖 ${VERSION}"
36- git tag "v$VERSION"
37- git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master "v${VERSION}"
38- fi
39- env :
40- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41- VERSION : ${{ steps.versions.outputs.installed }}
42- if : success() && steps.versions.outputs.installed != steps.versions.outputs.published
43- - name : Publish
44- run : |
45- npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
46- npm publish
47- env :
48- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
49- if : success() && steps.versions.outputs.installed != steps.versions.outputs.published
14+ - name : Checkout
15+ uses : actions/checkout@v2
16+ - name : Install Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : 16
20+ - name : Install Packages
21+ run : npm install
22+ - name : Check ESLint Version
23+ uses : ./.github/actions/get-eslint-versions
24+ id : versions
25+ - name : Test
26+ run : npm test
27+ if : success() && steps.versions.outputs.installed != steps.versions.outputs.published
28+ - name : Bump Version
29+ run : |
30+ if ! git diff --exit-code --quiet
31+ then
32+ git config user.name "${GITHUB_ACTOR}"
33+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
34+ git add .
35+ git commit -m "🔖 ${VERSION}"
36+ git tag "v$VERSION"
37+ git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master "v${VERSION}"
38+ fi
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ VERSION : ${{ steps.versions.outputs.installed }}
42+ if : success() && steps.versions.outputs.installed != steps.versions.outputs.published
43+ - name : Publish
44+ run : |
45+ npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
46+ npm publish
47+ env :
48+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
49+ if : success() && steps.versions.outputs.installed != steps.versions.outputs.published
0 commit comments