docs(*): bump version to 1.11.16 #17
This file contains 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
name: 🚀 Release | |
on: | |
push: | |
branches: | |
- master | |
- next | |
- next-major | |
- alpha | |
- beta | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⤵️ Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: 🎉 Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@intuiface' | |
- name: 🎉 Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
run_install: false | |
- name: 🌱 Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- name: 🚸 Setup pnpm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: 🚧 Install dependencies | |
run: pnpm install --no-frozen-lockfile --ignore-scripts | |
- name: 📦 Build | |
run: pnpm run build | |
- name: ✅ Test | |
run: pnpm run test | |
- name: Publish package | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPMJS_PUBLISH_TOKEN}} | |
#- name: 🔑 Generate Token | |
# uses: wow-actions/use-app-token@v2 | |
# with: | |
# app_id: ${{ secrets.APP_ID }} | |
# private_key: ${{ secrets.PRIVATE_KEY }} | |
#- name: 📦 Semantic Release | |
# uses: cycjimmy/semantic-release-action@v3 | |
# id: semantic | |
# with: | |
# extends: '@bubkoo/semantic-release-config' | |
# extra_plugins: | | |
# @semantic-release/changelog | |
# @semantic-release/git | |
# env: | |
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# GITHUB_TOKEN: ${{ env.BOT_TOKEN }} | |
# GIT_AUTHOR_NAME: ${{ env.BOT_NAME }}[bot] | |
# GIT_AUTHOR_EMAIL: ${{ env.BOT_NAME }}[bot]@users.noreply.github.com | |
# GIT_COMMITTER_NAME: ${{ env.BOT_NAME }}[bot] | |
# GIT_COMMITTER_EMAIL: ${{ env.BOT_NAME }}[bot]@users.noreply.github.com | |
#- name: 🎉 Setup Node.js with GitHub Package Registry | |
# if: steps.semantic.outputs.new_release_published == 'true' | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 16 | |
# registry-url: https://npm.pkg.github.com | |
# scope: bubkoo | |
#- name: 🔀 Publish To GitHub Package Registry | |
# if: steps.semantic.outputs.new_release_published == 'true' | |
# run: | | |
# sed -i 's/\("name"\:[[:space:]]*"\)\(html-to-image"\)/\1@bubkoo\/\2/' package.json | |
# npm publish | |
# env: | |
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |