Skip to content

Commit

Permalink
infra: NPM setup (#111)
Browse files Browse the repository at this point in the history
* infra: NPM setup

* fix: ignore package.json

* fix: release

* fix: release

* fix: release NPM

* fix: release NPM

* fix: release NPM

* fix: release NPM
  • Loading branch information
dkarlovi authored Feb 17, 2023
1 parent 49b28f7 commit 3822b96
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/*dist export-ignore
/composer.lock export-ignore
/Makefile export-ignore
/package.json export-ignore
15 changes: 15 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
release:

jobs:
ReleaseNPM:
runs-on: ubuntu-latest
steps:
- name: Repo checkout
uses: actions/checkout@v3
- name: Set release version to package.json
run: jq --indent 4 '.version = "${{ github.ref }}"' < package.json > package.json~ && mv package.json~ package.json
- name: NPM release
run: npm publish
env:
NODE_AUTH_TOKEN: "${{ secrets.NPMJS_SECRET }}"
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@sigwinhq/infra",
"description": "Sigwin's default per-project infra",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "[email protected]:sigwinhq/infra.git"
},
"keywords": [
"sigwin",
"infra"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/sigwinhq/infra/issues"
},
"homepage": "https://github.com/sigwinhq/infra#readme",
"files": [
"resources",
"package.json",
"README.md"
]
}

0 comments on commit 3822b96

Please sign in to comment.