Skip to content

Commit

Permalink
[releng] configure the github action
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbarbin committed Jan 24, 2024
1 parent 3421d32 commit 9e286c7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: publish

on:
release:
types: [published, edited]

jobs:
release:
name: publish
runs-on: ubuntu-latest

steps:
- name: Begin CI...
uses: actions/checkout@v2

- name: Use Node 16
uses: actions/setup-node@v1
with:
node-version: 16.x
registry-url: https://npm.pkg.github.com/

- name: NPM Publish
run: |
if [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-trello",
"name": "@ObeoNetwork/react-trello",
"version": "2.4.1",
"description": "Pluggable components to add a trello like kanban board to your application",
"main": "dist/index.js",
Expand All @@ -21,9 +21,9 @@
"format": "pretty-quick \"src/**/*.js\"",
"size": "size-limit"
},
"repository": {
"type": "git",
"url": "https://github.com/rcdexta/react-trello"
"repository": "@ObeoNetwork/react-trello",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"keywords": [
"react",
Expand All @@ -32,10 +32,6 @@
],
"author": "RC, Prakash",
"license": "MIT",
"bugs": {
"url": "https://github.com/rcdexta/react-trello/issues"
},
"homepage": "https://github.com/rcdexta/react-trello",
"dependencies": {
"autosize": "^4.0.2",
"classnames": "^2.2.6",
Expand Down

0 comments on commit 9e286c7

Please sign in to comment.