Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Enable GPR publish and add coverage to default test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucio Martinez committed Sep 8, 2020
1 parent fc03bb2 commit bbd9a8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,17 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "gtag-opt-in",
"version": "1.0.0-alpha.9",
"version": "1.0.1",
"description": "Google Analytics Opt In",
"main": "dist/index.js",
"module": "src/index.js",
"scripts": {
"build": "npx webpack --config webpack.config.js",
"test": "jest",
"coverage": "jest --coverage"
"test": "jest --coverage"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit bbd9a8e

Please sign in to comment.