Skip to content

Merge pull request #72 from mediamonks/dependabot/npm_and_yarn/vite-5… #128

Merge pull request #72 from mediamonks/dependabot/npm_and_yarn/vite-5…

Merge pull request #72 from mediamonks/dependabot/npm_and_yarn/vite-5… #128

name: Publish dev release
on:
push:
branches: [main]
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- name: Install npm packages
run: npm ci
- name: Setup Git
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Bump Version
run: |
echo "$(npm pkg get version | cut -d '"' -f 2 | cut -d '-' -f 1)-dev.$(git rev-parse --short HEAD)" | xargs npm version --no-git-tag-version
- name: Build & Publish
run: npm run build
- name: Publish
run: |
npm run prepare-publish
cd ./dist
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --tag next
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}