0
0
mirror of https://github.com/fawazahmed0/exchange-api.git synced 2025-06-29 18:21:14 +00:00

support iso date format

This commit is contained in:
Fawaz Ahmed 2024-03-06 23:36:16 +05:30
parent 545e77370a
commit fe6e3e0886

View File

@ -47,7 +47,9 @@ jobs:
run: node currscript.js
- name: Set date today
run: echo "date_today=`date -I`" >> "$GITHUB_ENV"
run: |
echo "date_today=`date -I`" >> "$GITHUB_ENV"
echo "date_today_semver=`node semver-date.js`" >> "$GITHUB_ENV"
- name: Generate tarball
run: |
@ -55,7 +57,9 @@ jobs:
7z a package.tar.gz package.tar -tgzip -mx=9 -aoa -mfb=258 -mmt=on
- name: publish
run: npm publish --access public package.tar.gz
run: |
npm publish --access public package.tar.gz
npm dist-tag add @fawazahmed0/currency-api@${{ env.date_today_semver }} `date -I`
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}