Skip to content

Commit

Permalink
Merge pull request #8 from sigrennesmetropole/324-publishing-pkg
Browse files Browse the repository at this point in the history
324 publishing pkg
  • Loading branch information
MaYohann authored Feb 15, 2023
2 parents cd5ff59 + a443a1b commit 517b695
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release-package.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
name: Node.js Package

on:
workflow_dispatch:
release:
push:
branches:
- main

jobs:
patch:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Git config
run: |
git config --global user.email "github-actions[bot]"
git config --global user.name "github-actions[bot]@users.noreply.github.com"
- name: Version bump
run: npm version patch
- name: Git push version bump
run: git push origin main
build:
runs-on: ubuntu-latest
steps:
Expand All @@ -12,7 +31,6 @@ jobs:
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cooperation_jn_common_ui",
"private": true,
"name": "@sigrennesmetropole/cooperation_jn_common_ui",
"private": false,
"version": "0.0.1",
"repository": "https://github.com/sigrennesmetropole/cooperation_jn_common_ui.git",
"publishConfig": {
Expand Down Expand Up @@ -29,8 +29,7 @@
"prepare": "husky install",
"story": "histoire dev",
"story:build": "histoire build",
"story:preview": "histoire preview",
"format": "prettier --write --list-different . && npm run lint:js -- --fix"
"story:preview": "histoire preview"
},
"dependencies": {
"npm-watch": "^0.11.0",
Expand Down

0 comments on commit 517b695

Please sign in to comment.