Skip to content

Commit

Permalink
ci: djedi-react release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Jan 9, 2024
1 parent b312a5c commit 99c39ba
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-djedi-react.yml
@@ -0,0 +1,31 @@
name: Release djedi-react

on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'djedi-react/package-json'

jobs:
release:
name: Build and push npm release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
working-directory: ./djedi-react
run: npm ci
- name: Build package
working-directory: ./djedi-react
run: npm run build
- name: Publish package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./djedi-react/package.json
5 changes: 2 additions & 3 deletions djedi-react/package.json
@@ -1,6 +1,6 @@
{
"name": "djedi-react",
"version": "5.4.1",
"version": "5.5.0",
"license": "BSD-3-Clause",
"author": "Simon Lydell",
"repository": "5monkeys/djedi-cms",
Expand All @@ -27,8 +27,7 @@
"jest": "jest",
"coverage": "jest --coverage",
"build": "babel --env-name test --delete-dir-on-start src --out-dir dist",
"test": "npm run eslint && npm run coverage && npm run build",
"prepublishOnly": "npm test"
"test": "npm run eslint && npm run coverage && npm run build"
},
"dependencies": {
"dedent-js": "^1.0.1",
Expand Down

0 comments on commit 99c39ba

Please sign in to comment.