mirror of
https://github.com/fawazahmed0/exchange-api.git
synced 2025-06-29 10:11:13 +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
|
||||
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 }}
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "@fawazahmed0/currency-api",
|
||||
"main": "index.js",
|
||||
"version": "YYYY.MM.DD"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user