Add build time to package.json in workflow

Use gerred/actions/current-time to get ISO8061 timestamp and replace
releaseDate in package.json
pull/7734/head
Christoph Kepler 4 years ago
parent 21c65bd5db
commit 7b24acf994
No known key found for this signature in database
GPG Key ID: FED133CE3670330D

@ -70,11 +70,16 @@ jobs:
tags: |
type=sha,prefix=
- name: Get build time
uses: gerred/actions/current-time@master
id: build_time
- name: Rewrite entries in package.json to repository
uses: microsoft/variable-substitution@v1
with:
files: "package.json"
env:
releaseDate: ${{ steps.build_time.outputs.time }}
repository.url: "git+${{ github.server_url }}/${{ github.repository }}.git"
bugs.url: "${{ github.server_url }}/${{ github.repository }}/issues"
homepage: "${{ github.server_url }}/${{ github.repository }}#readme"

Loading…
Cancel
Save