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

add code for publishing package

This commit is contained in:
Fawaz Ahmed 2024-02-29 21:03:47 +05:30
parent 4d6a12017c
commit 33d54d42ac
2 changed files with 6 additions and 2 deletions

View File

@ -34,6 +34,8 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update -y
sudo apt-get install swapspace -y
npm i
npx playwright install --with-deps
@ -46,9 +48,10 @@ jobs:
- name: Generate tarball
run: |
7z a package.tar package -ttar
7z a package.tar.gz package.tar -tgzip -mx=9 -aoa -mfb=258 -mmt=on
- name: publish
run: npm publish
run: npm publish package.tar.gz
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -1,5 +1,6 @@
{
"name": "@fawazahmed0/currency-api",
"main": "index.js",
"version": "YYYY.MM.DD"
}