Skip to content

Commit

Permalink
ci(release): handle package registry and commit bot (#4)
Browse files Browse the repository at this point in the history
* chore: fix repository entry

* ci: fix release workflow
  • Loading branch information
batopa authored Dec 12, 2023
1 parent 11e598e commit c7f5efc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'

- name: Setup git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Install
run: npm install
Expand All @@ -40,18 +46,18 @@ jobs:
run: npm run release:major
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Minor release
if: contains(github.event.pull_request.labels.*.name, 'release:minor')
run: npm run release:minor
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Patch release
if: contains(github.event.pull_request.labels.*.name, 'release:patch')
run: npm run release:patch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "@atlasconsulting/nuxt-bedita",
"version": "0.0.1",
"description": "Nuxt module for BEdita API",
"repository": "@atlasconsulting/nuxt-bedita",
"repository": {
"type": "git",
"url": "git+https://github.com/atlasconsulting/nuxt-bedita.git"
},
"license": "MIT",
"type": "module",
"exports": {
Expand Down

0 comments on commit c7f5efc

Please sign in to comment.