Skip to content

Commit

Permalink
Added CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Jan 14, 2025
1 parent bcea469 commit 473fec3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/any.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Any build
on:
push:
branches:
- '*'
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, lint and/or test
run: |
yarn
- name: build
run: yarn build
env:
CI: true
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to npm
on:
push:
branches:
- main
- app

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18
- run: yarn
- run: ./node_modules/.bin/install-self-peers
- run: yarn build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ecency/renderer",
"version": "1.0.0",
"description": "",
"description": "React components for rendering Hive posts using Ecency extensions",
"keywords": [],
"files": [
"dist",
Expand Down

0 comments on commit 473fec3

Please sign in to comment.