feat: add purs-eval npm publication

This commit is contained in:
Walker 2022-11-02 01:29:54 -03:00
parent 5a0f77fe83
commit a3fe337665
5 changed files with 18 additions and 3 deletions

View File

@ -7,13 +7,18 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix build
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: purs-eval
# The logic below handles the npm publication:
- uses: actions/checkout@v3
# The logic below handles the npm publication:
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}

View File

@ -10,5 +10,4 @@ jobs:
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix build
- run: nix flake check

6
.npmignore Normal file
View File

@ -0,0 +1,6 @@
/.github
/flake.*
/test
/src
/test
/.psc-ide-port

4
package-lock.json generated
View File

@ -4,6 +4,10 @@
"requires": true,
"packages": {
"": {
"name": "purs-eval",
"bin": {
"purs-eval": "result/bin/purs-eval"
},
"devDependencies": {
"xhr2": "^0.2.1"
}

View File

@ -1,5 +1,6 @@
{
"name": "purs-eval",
"bin": "result/bin/purs-eval",
"devDependencies": {
"xhr2": "^0.2.1"
}