Skip to content

Release

Release #5

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Who am I?
run: npm whoami
- name: Check if package is already published
run: npm view @parvez3019/ai-code-review-gitlab-plugin version
- name: Check if package is already published
run: npm view @parvez3019/ai-code-review-gitlab-plugin version
- name: Build package
run: npm run build
- name: Configure npm authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to npm
run: npm publish --access public