Skip to content

Commit

Permalink
docs: workflow for publishing new release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianmusial committed Mar 15, 2024
1 parent 45e77db commit 8f834e9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name: Publish package to GitHub Packages
#on:
# release:
# types: [published]
on:
release:
types: [published]
pull_request:
branches:
- master
- main
- next
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@boldare'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
- run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.BOLDARE_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion libs/ai-assistant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boldare/ai-assistant",
"version": "0.0.2-dev.5",
"version": "0.0.2-dev.6",
"private": false,
"dependencies": {
"tslib": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"format": "nx format:write",
"prepare": "husky"
},
"private": true,
"private": false,
"dependencies": {
"@angular/animations": "~17.0.0",
"@angular/cdk": "^17.0.5",
Expand Down

0 comments on commit 8f834e9

Please sign in to comment.