Skip to content

Commit

Permalink
ci: run build so min file is included in published package
Browse files Browse the repository at this point in the history
  • Loading branch information
wes-goulet committed Nov 10, 2023
1 parent ca222ea commit 73916da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [created]

jobs:
build:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.18.x
registry-url: https://registry.npmjs.org/
cache: npm

- name: Install
Expand All @@ -26,20 +27,6 @@ jobs:
- name: Build
run: npm run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.18.x
registry-url: https://registry.npmjs.org/
cache: npm

- name: Publish
run: npm publish
env:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "side-drawer",
"version": "4.0.2",
"version": "4.0.3",
"description": "A simple side drawer element with no dependencies and small as possible",
"keywords": [
"web component",
Expand All @@ -15,7 +15,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/wes-goulet/side-drawer"
"url": "git+https://github.com/wes-goulet/side-drawer.git"
},
"author": "wes@goulet.dev",
"license": "MIT",
Expand Down

0 comments on commit 73916da

Please sign in to comment.