Skip to content

Commit

Permalink
update release workflow (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbgt authored Oct 28, 2024
1 parent bd5050e commit 56f9e57
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,23 @@ jobs:
- name: Generate binaries
run: npm run binaries

- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.WORKFLOWS_GITHUB_APP_ID }}
private_key: ${{ secrets.WORKFLOWS_GITHUB_APP_PRIVATE_KEY }}

- name: Login with git
run: |
git config --global user.email "florian@nanoapi.io"
git config --global user.name "Florian Bigot"
git config --global user.email "info@nanoapi.io"
git config --global user.name "nanoapi.io"
- name: Login to npm registry
run: npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"

- name: Run release-it
run: npm run release -- --ci --${{ github.event.inputs.release_type }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 2 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [0.0.7] - 2024-10-28

Implement grouping
Fix minor UI issue with edges

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanoapi.io/napi",
"version": "0.0.6",
"version": "0.0.7",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit 56f9e57

Please sign in to comment.