File tree Expand file tree Collapse file tree 3 files changed +15
-30
lines changed Expand file tree Collapse file tree 3 files changed +15
-30
lines changed Original file line number Diff line number Diff line change 11name : Release Notes
22
3- on :
3+ on :
44 push :
55 tags :
66 - ' *'
99 notes :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v3
1313 with :
1414 fetch-depth : 0
1515 - name : Get Previous Tag
16- id : previousTag
1716 run : |
1817 PREVIOUS_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))
1918 echo ${PREVIOUS_TAG}
20- echo ::set-output name=tag:: ${PREVIOUS_TAG}
19+ echo "previous_tag= ${PREVIOUS_TAG}" >> $GITHUB_ENV
2120 - name : Get New Tag
22- id : nextTag
2321 run : |
2422 NEW_TAG=${GITHUB_REF#refs/tags/}
2523 echo ${NEW_TAG}
26- echo ::set-output name=tag:: ${NEW_TAG}
27- - uses : actions/setup-node@v2
24+ echo "new_tag= ${NEW_TAG}" >> $GITHUB_ENV
25+ - uses : actions/setup-node@v3
2826 - name : Generate Release Notes
2927 id : notes
3028 run : |
31- NOTES=$(npx generate-github-release-notes jrjohnson ember-cli-image-transformer ${{ steps.previousTag.outputs.tag }} ${{steps.nextTag.outputs.tag }})
29+ NOTES=$(npx generate-github-release-notes jrjohnson ember-cli-image-transformer ${{ env.previous_tag }} ${{env.new_tag }})
3230 echo ${NOTES}
3331 # remove line breaks from notes so they can be passed around
3432 NOTES="${NOTES//$'\n'/'%0A'}"
35- echo "::set-output name=releaseNotes::$ NOTES"
33+ echo "release_notes=${ NOTES}" >> $GITHUB_ENV
3634 - uses : ncipollo/release-action@v1
3735 with :
38- body : ${{steps.notes.outputs.releaseNotes }}
39- token : ${{ secrets.MY_TOKEN }}
36+ body : ${{env.release_notes }}
37+ token : ${{ secrets.MY_TOKEN }}
Original file line number Diff line number Diff line change 55 types : [published]
66
77jobs :
8- build :
9- runs-on : ubuntu-latest
10- steps :
11- - uses : actions/checkout@v1
12- - uses : actions/setup-node@v2
13- with :
14- node-version : 14
15- - name : install dependencies
16- run : npm ci
17- - name : test
18- run : npm run test:ember
19-
208 publish-npm :
21- needs : build
229 runs-on : ubuntu-latest
2310 steps :
24- - uses : actions/checkout@v2
25- - uses : actions/setup-node@v2
11+ - uses : actions/checkout@v3
12+ - uses : actions/setup-node@v3
2613 with :
27- node-version : 14
14+ node-version : 16.x
2815 registry-url : https://registry.npmjs.org/
2916 - name : install dependencies
30- run : npm ci
17+ run : npm ci --ignore-scripts
3118 - name : publish
3219 run : npm publish
3320 env :
Original file line number Diff line number Diff line change 1111 tag :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v3
1515 with :
1616 token : ${{ secrets.MY_TOKEN }}
1717 - name : Validate releaseType
2323 - name : Increment Version
2424 run : npm version ${{ github.event.inputs.releaseType }}
2525 - name : Push Changes
26- run : git push --follow-tags
26+ run : git push --follow-tags
You can’t perform that action at this time.
0 commit comments