Skip to content

Commit

Permalink
Merge branch 'main' of github.com:baptistedftn/react-firebase-blog in…
Browse files Browse the repository at this point in the history
…to main
  • Loading branch information
baptistedftn committed Oct 19, 2020
2 parents dbae2e8 + bc98968 commit e8071bc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
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}}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Firebase Blog for React.js

Blog component powered by Firebase realtime database
Markdown supported

## Install

Expand Down Expand Up @@ -66,5 +67,5 @@ render() {
## Copyright
© *baptistedftn* https://github.com/baptistedftn

[License] (https://baptistedftn.mit-license.org/ "license")
[License](https://baptistedftn.mit-license.org/ "license")

0 comments on commit e8071bc

Please sign in to comment.