Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from AckeeCZ/feat/add-publish-action-remove-raven
Browse files Browse the repository at this point in the history
Add github publish action, remove raven types
  • Loading branch information
llouka authored May 26, 2022
2 parents 108d8bf + 64463a3 commit 1aec195
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish to NPM

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm i
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"@google-cloud/storage": "^5.14.0",
"@types/cors": "^2.8.12",
"@types/multer": "^1.4.7",
"@types/raven": "^2.5.4",
"@types/server-destroy": "^1.0.1",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
Expand All @@ -43,7 +42,7 @@
"server-destroy": "^1.0.1"
},
"devDependencies": {
"@ackee/styleguide-backend-config": "^0.2.2",
"@ackee/styleguide-backend-config": "^0.3.0",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.1",
"@types/supertest": "^2.0.11",
Expand Down

0 comments on commit 1aec195

Please sign in to comment.