Skip to content

Commit

Permalink
fix disabling cicd for now
Browse files Browse the repository at this point in the history
  • Loading branch information
iamorlando committed Dec 10, 2023
1 parent 34edc8a commit 17bc3a5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 28 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
name: Node.js CI/CD
# name: Node.js CI/CD

on:
push:
branches: [ main, dev ]
# on:
# push:
# branches: [ main ]

jobs:
build-and-publish:
runs-on: ubuntu-latest
# jobs:
# build-and-publish:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org/'
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '14'
# registry-url: 'https://registry.npmjs.org/'

- name: Install Dependencies
run: npm install
# - name: Install Dependencies
# run: npm install

- name: Run Tests
id: tests
run: npm test


- name: Publish to Public NPM
if: github.ref == 'refs/heads/main'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLISH}}
# - name: Publish to Public NPM
# if: github.ref == 'refs/heads/main'
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.PUBLISH}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-nexbot",
"version": "1.0.1",
"version": "1.0.2",
"description": "Hooks and utilities to chat with NEXBots from your project",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion react-nexbot-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"axios": "^1.6.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-nexbot": "file:../react-nexbot-1.0.1.tgz",
"react-nexbot": "file:../react-nexbot-1.0.2.tgz",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down

0 comments on commit 17bc3a5

Please sign in to comment.