Skip to content

Commit

Permalink
make it a propper npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobsic committed Mar 12, 2021
1 parent fb95352 commit 5adf6f9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,10 @@ jobs:
- uses: actions/checkout@v2
- name: Build
run: |
echo "create dist"
mkdir dist
ls -la dist
echo "dist created"
echo "copy index.js"
cp index.js dist/
ls -la dist
cat dist/index.js
echo "index.js copied"
echo "create dist.tar.gz"
tar -czvf dist.tar.gz dist/*
ls -la dist.tar.gz
tar -ztvf dist.tar.gz
echo "dist.tar.gz created"
tar -czvf dist.tar.gz *
- uses: softprops/action-gh-release@v1
with:
files: |
Expand Down
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "build-action-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Tobsic/build-action-test.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/Tobsic/build-action-test/issues"
},
"homepage": "https://github.com/Tobsic/build-action-test#readme"
}

0 comments on commit 5adf6f9

Please sign in to comment.