Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

npm: bump the minor group across 1 directory with 4 updates #67

npm: bump the minor group across 1 directory with 4 updates

npm: bump the minor group across 1 directory with 4 updates #67

Workflow file for this run

name: Release
on:
pull_request:
branches:
- main
types:
- closed
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
release:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')
environment: Production
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@mytiki'
- name: Build project
run: |
npm ci
npm run build
- name: Get version
id: version
run: echo "current=$(npm pkg get version | tr -d '"')" >> $GITHUB_OUTPUT
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build Docs
run: npm run docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs'
- name: Release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.current }}