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:
parent
4d6a12017c
commit
33d54d42ac
7
.github/workflows/run.yml
vendored
7
.github/workflows/run.yml
vendored
@ -34,6 +34,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get install swapspace -y
|
||||||
npm i
|
npm i
|
||||||
npx playwright install --with-deps
|
npx playwright install --with-deps
|
||||||
|
|
||||||
@ -46,9 +48,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate tarball
|
- name: Generate tarball
|
||||||
run: |
|
run: |
|
||||||
|
7z a package.tar package -ttar
|
||||||
|
7z a package.tar.gz package.tar -tgzip -mx=9 -aoa -mfb=258 -mmt=on
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
run: npm publish
|
run: npm publish package.tar.gz
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fawazahmed0/currency-api",
|
"name": "@fawazahmed0/currency-api",
|
||||||
|
"main": "index.js",
|
||||||
"version": "YYYY.MM.DD"
|
"version": "YYYY.MM.DD"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user