Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand All @@ -21,6 +22,7 @@ jobs:
- name: Configure npm authentication
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc

- name: Install NPM dependencies
run: bun install
Expand All @@ -31,3 +33,9 @@ jobs:
- name: Release General Codes
run: npm publish --access public
working-directory: ./packages/general-codes

# Dual-publish na GH Packages — sjednocuje @develit-io scope pro konzumenty
# s bunfig scope → npm.pkg.github.com.
- name: Release General Codes to GitHub Packages
run: npm publish --registry https://npm.pkg.github.com
working-directory: ./packages/general-codes
4 changes: 4 additions & 0 deletions packages/general-codes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "General Codes",
"author": "Develit.io",
"license": "ISC",
"repository": {
"type": "git",
"url": "git+https://github.com/develit-io/general-codes.git"
},
"type": "module",
"scripts": {
"build": "unbuild",
Expand Down