Skip to content

Commit

Permalink
fix(ci): release-ci fixing again
Browse files Browse the repository at this point in the history
  • Loading branch information
mahabubx7 committed Oct 15, 2024
1 parent 3914791 commit eaa766c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write # Explicitly set the permission to write contents

steps:
# 1. Checkout the repository
- name: Checkout code
Expand All @@ -22,10 +25,15 @@ jobs:
with:
node-version: "20" # Specify your Node.js version
registry-url: "https://registry.npmjs.org/"
# Use the NPM_TOKEN secret for authentication
node-auth-token: ${{ secrets.NPM_TOKEN }}
# If your package is scoped (e.g., @your-scope/package), uncomment the following line and set your scope
# scope: '@your-scope'

# Debug npm configuration
- name: Print npm configuration
run: npm config list

# 3. Install project dependencies
- name: Install dependencies
run: npm install
Expand Down
18 changes: 18 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Set the registry to use for npm
registry=https://registry.npmjs.org/

# Save exact versions of dependencies
save-exact=true

# Set the cache directory
cache=/home/mahabub/.npm-cache

# Set the log level
loglevel=warn

# Set the proxy (if needed)
# proxy=http://proxy.company.com:8080
# https-proxy=http://proxy.company.com:8080

# Always require authentication for scoped packages
always-auth=true
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "akar",
"version": "1.0.0-beta",
"version": "1.0.0-beta.1",
"description": "Akar.js is a simple and lightweight schema based data-validation library.",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -86,14 +86,14 @@
"push": true
},
"github": {
"release": true
"release": true,
"web": true
},
"npm": {
"publish": true,
"publishPath": "./",
"skipChecks": false
},
"ci": true,
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
Expand Down

0 comments on commit eaa766c

Please sign in to comment.