Skip to content

Merge pull request #2 from redhat-developer/dependabot/npm_and_yarn/w… #6

Merge pull request #2 from redhat-developer/dependabot/npm_and_yarn/w…

Merge pull request #2 from redhat-developer/dependabot/npm_and_yarn/w… #6

name: release-npm-package
on:
push:
branches: [main]
jobs:
release-npm-package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish to npm
run: |
#latest_version=$(npm view @redhat-developer/red-hat-developer-hub-theme@latest version)
#npm version $latest_version --no-git-tag-version
npm version patch --no-git-tag-version
npm publish --access=public --tag=latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}