Skip to content

released v1.0.12 (#12) #40

released v1.0.12 (#12)

released v1.0.12 (#12) #40

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm install
- name: 📦 next-remove-imports build
working-directory: core
run: npm run build
- name: example build
working-directory: example/cjs
run: npm run build
- name: example build
working-directory: example/esm
run: npm run build
- run: mkdir -p build
- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
source: core/README.md
output: build/index.html
github-corners: https://github.com/uiwjs/next-remove-imports
- name: Build and Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# force_orphan: true
# publish_branch: gh-pages
publish_dir: ./build
- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./core/package.json
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{ steps.create_tag.outputs.version }}
filter-author: (小弟调调™|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Create Release
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.changelog.outputs.tag }}
tag: ${{ steps.changelog.outputs.tag }}
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/next-remove-imports@${{steps.changelog.outputs.version}}/file/README.md) [![npm version](https://img.shields.io/npm/v/next-remove-imports.svg)](https://www.npmjs.com/package/next-remove-imports) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/next-remove-imports)](https://bundlephobia.com/result?p=next-remove-imports@${{steps.changelog.outputs.version}})
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- run: npm publish
name: 📦 next-remove-imports publish to NPM
working-directory: core
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - run: npm install @jsdevtools/npm-publish -g
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
# - name: 📦 next-remove-imports publish to NPM
# uses: JS-DevTools/npm-publish@v1
# with:
# token: ${{ secrets.NPM_TOKEN }}
# package: ./core/package.json