Skip to content

chore(deps-dev): bump @vercel/ncc from 0.38.1 to 0.38.2 #2049

chore(deps-dev): bump @vercel/ncc from 0.38.1 to 0.38.2

chore(deps-dev): bump @vercel/ncc from 0.38.1 to 0.38.2 #2049

name: Continuous Delivery
on:
push:
branches:
- master
jobs:
release:
if: contains(github.event.commits[0].message, 'chore(release)') == false
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Fetch all history.
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/[email protected]
with:
cache: 'npm'
node-version: 20
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
- name: Build
run: |
# Workaround https://github.com/zeit/ncc/issues/457.
mv tsconfig.production.json tsconfig.json
npm run build
- env:
GITHUB_TOKEN: ${{ secrets.DOTTBOTT_TOKEN }}
id: release
name: Release
uses: ridedott/[email protected]
with:
commit-assets: |
./dist
node-module: true
release-rules-append: |
[
{ "release": false, "scope": "deps-dev", "type": "chore" }
]
- if: steps.release.outputs.released == 'true'
name: Setup Node.js with GitHub Packages
uses: actions/[email protected]
with:
registry-url: 'https://npm.pkg.github.com'
- env:
NODE_AUTH_TOKEN: ${{ secrets.DOTTBOTT_TOKEN }}
if: steps.release.outputs.released == 'true'
name: Publish to GitHub Packages
run: npm publish
- if: steps.release.outputs.released == 'true'
name: Authenticate Git
uses: actions/checkout@v3
with:
fetch-depth: 1
persist-credentials: true
token: ${{ secrets.DOTTBOTT_TOKEN }}
- if: steps.release.outputs.released == 'true'
name: Tag
run: |
git config --global user.name '{{ secrets.DOTTBOTT_USER_NAME }}'
git config --global user.email '{{ secrets.DOTTBOTT_USER_EMAIL }}'
git push origin :refs/tags/'v${{ steps.release.outputs.major }}'
git tag 'v${{ steps.release.outputs.major }}' --force
git push --tags
timeout-minutes: 10