Repository navigation
DX | 31-08-2026 | Release | Back-merge #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
81a41d4
Merge pull request #200 from contentstack/development
cs-raj cb1417d
Update release.yml
Aravind-Kumar-cstk d0dac71
Update CODEOWNERS
Aravind-Kumar-cstk c0c591a
chore: sync package-lock.json with package.json
cs-raj 74bd2c7
Merge pull request #203 from contentstack/chore/sync-package-lock
cs-raj b885ed5
Updated codeowners
Aravind-Kumar-cstk 4a27906
Updated codeowners
Aravind-Kumar-cstk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,89 +1,41 @@ | ||
| name: Publish package to NPM and Git registry | ||
|
|
||
| name: Publish package to npmjs registry | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| release: | ||
| types: [published] | ||
| jobs: | ||
| build: | ||
| name: Build and upload | ||
| publish-npm: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22.x" | ||
| - name: Install dependencies | ||
| run: npm install | ||
| - name: Build | ||
| run: | | ||
| rm -rf dist | ||
| npm run prepare | ||
| - name: Upload dist | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: dist | ||
| path: dist | ||
|
|
||
| release: | ||
| name: Download dist and release | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| registry-url: https://registry.npmjs.org/ | ||
| cache: 'npm' | ||
| - run: npm ci | ||
| - name: Update npm | ||
| run: npm install -g npm@latest | ||
| - name: Release | ||
| run: npm publish --access public | ||
| publish-github: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22.x" | ||
| - name: Install dependencies | ||
| run: npm install | ||
| - name: Download dist | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: dist | ||
| path: dist | ||
| - name: Display dirs | ||
| run: ls -R | ||
| - uses: Klemensas/[email protected] | ||
| id: update_tag | ||
| with: | ||
| GITHUB_TOKEN: "${{ secrets.PKG_TOKEN }}" | ||
| tag_prefix: "v" | ||
| - name: Release | ||
| if: steps.update_tag.outputs.tagname | ||
| id: release-plugin | ||
| uses: JS-DevTools/[email protected] | ||
| with: | ||
| token: ${{ secrets.TYPES_GENERATOR_AUTOMATION }} | ||
| strategy: upgrade | ||
| # setup-node writes an .npmrc pointing at GitHub Packages, so the scoped | ||
| # publish below resolves there instead of npmjs. | ||
| - name: Setup Node.js for GitHub Packages | ||
| if: steps.update_tag.outputs.tagname | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22.x" | ||
| node-version: 24 | ||
| registry-url: https://npm.pkg.github.com/ | ||
| - name: Release to GitHub Packages | ||
| if: steps.update_tag.outputs.tagname | ||
| run: npm publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.PKG_TOKEN }} | ||
| - name: GitHub Release | ||
| if: steps.update_tag.outputs.tagname | ||
| id: github-release | ||
| cache: 'npm' | ||
| - run: npm ci | ||
| - name: Update npm | ||
| run: npm install -g npm@latest | ||
|
cs-raj marked this conversation as resolved.
|
||
| - name: Release | ||
| run: npm publish --access public | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.PKG_TOKEN }} | ||
| VERSION: ${{ steps.release-plugin.outputs.version }} | ||
| run: gh release create v"$VERSION" --title "Release $VERSION" --generate-notes | ||
| NODE_AUTH_TOKEN: ${{ github.token }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,4 @@ | ||
| * @contentstack/devex-pr-reviewers | ||
|
|
||
| .github/workflows/sca-scan.yml @contentstack/security-admin | ||
|
|
||
| * @contentstack/developer-ecosystem-pr-reviewers | ||
| .github/workflows/ @contentstack/security-admin | ||
| **/.snyk @contentstack/security-admin | ||
|
|
||
| .github/workflows/policy-scan.yml @contentstack/security-admin | ||
|
|
||
| .github/workflows/issues-jira.yml @contentstack/security-admin | ||
| **/CODEOWNERS @contentstack/security-admin |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.