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 12 updates #241
Workflow file for this run
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: | |
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: | |
vue3: | |
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: | |
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 for Vue 3 | |
run: make vue3 | |
- 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@v3 | |
- name: Build Docs | |
run: npx typedoc src/main.ts --skipErrorChecking | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: './docs' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.version.outputs.current }} | |
vue2: | |
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: | |
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 for Vue 2 | |
run: make vue2 | |
- 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 }} |