Skip to content

Commit

Permalink
Merge pull request #22 from lakto/update-workflow
Browse files Browse the repository at this point in the history
Update workflow
  • Loading branch information
kilchenmann authored Oct 17, 2020
2 parents 3a11a5c + f1ad21c commit e71430c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 112 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/codescan-analysis.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,33 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@master"
- name: Update CHANGELOG file using gren
uses: lakto/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
options: '--override'
- name: Upload CHANGELOG to release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GH_TOKEN }}
file: CHANGELOG.md
file: target/release/CHANGELOG.md
tag: ${{ github.ref }}
overwrite: true

- run: npm install
- run: npm run build-lib

- name: Update version
run: cp CHANGELOG.md ${{env.dist-directory}}/ && cd ${{env.dist-directory}} && npm version ${{github.ref}} --git-tag-version=false --commit-hooks=false
run: cp CHANGELOG.md ${{env.dist-directory}}/ && cd ${{env.dist-directory}} && npm version ${{steps.previoustag.outputs.tag}} --git-tag-version=false --commit-hooks=false
- if: "github.event.release.prerelease"
run: npm publish ${{env.dist-directory}} --tag rc --access public --dry-run
run: npm publish ${{env.dist-directory}} --tag rc --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- if: "!github.event.release.prerelease"
run: npm publish ${{env.dist-directory}} --access public --dry-run
run: npm publish ${{env.dist-directory}} --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
72 changes: 0 additions & 72 deletions CHANGELOG.md

This file was deleted.

0 comments on commit e71430c

Please sign in to comment.