Skip to content

Commit

Permalink
chore(cicd): change pkg to private
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovicentegc committed Jun 25, 2024
1 parent 891f5b1 commit 7a12083
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

on:
push:
Expand All @@ -15,17 +16,24 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Setup Node.js environment
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- run: pnpm install
- run: pnpm run release

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false

- name: Install dependencies
run: pnpm install

- name: Publish
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "django-react-typescript-frontend",
"version": "0.1.0",
"private": true,
"main": "index.js",
"repository": "https://github.com/marcelovicentegc/django-react-typescript.git",
"author": "Marcelo Cardoso <dev@marcelo.page>",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "django-react-typescript",
"version": "0.1.0",
"private": true,
"description": "This is an non-opinionated Django + React boilerplate built with great development experience and easy deployment in mind.",
"scripts": {
"bootstrap": "concurrently -n global,backend,frontend \"pnpm i\" \"poetry install\" \"cd frontend && pnpm i\"",
Expand Down

0 comments on commit 7a12083

Please sign in to comment.