Skip to content

Commit

Permalink
ci: add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Aug 12, 2024
1 parent 69ab7aa commit 7babd37
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
branches: main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "@sebkolind/draggy",
"author": "sebkolind <[email protected]>",
"license": "MIT",
"version": "0.0.1",
"description": "A lightweight drag&drop library built with TypeScript.",
"source": "lib/main.ts",
Expand All @@ -8,6 +10,13 @@
"directories": {
"lib": "lib"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+ssh://[email protected]:sebkolind/draggy.git"
},
"scripts": {
"build": "rm -rf .parcel-cache dist && parcel build",
"dev": "parcel watch lib/main.ts --no-cache",
Expand All @@ -16,8 +25,6 @@
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"author": "sebkolind <[email protected]>",
"license": "MIT",
"devDependencies": {
"@parcel/compressor-gzip": "^2.12.0",
"@parcel/packager-ts": "^2.12.0",
Expand Down

0 comments on commit 7babd37

Please sign in to comment.