Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 2, 2024
1 parent 69806ed commit ac21b44
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 247 deletions.
65 changes: 38 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,40 @@ jobs:

steps:

-
uses: actions/checkout@v4
-
name: Checkout
uses: actions/checkout@v4

-
uses: actions/setup-node@v4
with:
node-version: 16
-
name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16

# - run: npm ci
# - run: npm run lint
# - run: npm ci
# - run: npm run lint



-
name: NPM Install & Build
run: |
npm install
npm run build
-
name: NPM Install & Build
run: |
npm install
npm run build
# npm run build --if-present
# npm test
# npm run build --if-present
# npm test

-
name: Zip lib & node_modules
run: zip -9qry "build.zip" "./" -i "node_modules/*" -i "lib/*"
-
name: Zip lib & node_modules
run: zip -9qry "build.zip" "./" -i "node_modules/*" -i "lib/*"

-
name: Upload build.zip
uses: actions/upload-artifact@v4
with:
name: build.zip
path: build.zip
-
name: Upload build.zip
uses: actions/upload-artifact@v4
with:
name: build.zip
path: build.zip


# =============================================================================
Expand All @@ -70,6 +72,7 @@ jobs:
steps:

-
name: Checkout
uses: actions/checkout@master

-
Expand Down Expand Up @@ -115,9 +118,11 @@ jobs:
steps:

-
name: Checkout
uses: actions/checkout@v4

-
name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
Expand All @@ -136,12 +141,18 @@ jobs:
-
name: Publish NPM
run: |
cd dist
ls
npm publish --access public
npm publish dist --access public
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM_TOKEN}}

# -
# name: Publish NPM
# run: |
# cd dist
# ls
# npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM_TOKEN}}

# =============================================================================
# Publish to GitHub Packages
Expand Down
6 changes: 3 additions & 3 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unit.gl",
"version": "0.0.10",
"version": "0.0.14",
"description": "Layout Engine.",
"keywords": [
"unit.gl",
Expand All @@ -20,11 +20,11 @@
"homepage": "https://www.unit.gl/",
"main": "index.js",
"files": [
"svg/**/*.{svg}",
"svg/**/*.svg",
"js/**/*.{js,map}",
"ts/**/*.ts",
"css/**/*.{css,map}",
"scss/**/*.{scss}",
"scss/**/*.scss",
"font/**/*.{eot,otf,ttf,woff,woff2}",
"!.DS_Store"
]
Expand Down
Loading

0 comments on commit ac21b44

Please sign in to comment.