⚡ improvement: add js as keyword for searching javascript icons #10
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: Publish NPM Package and Create Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
packages: write | |
id-token: write | |
jobs: | |
release: | |
name: Create Release and Publish NPM | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# - name: Install pnpm | |
# uses: pnpm/action-setup@v4 | |
# with: | |
# version: 9 | |
# run_install: false | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: "https://registry.npmjs.org/" | |
node-version: "20" | |
# cache: pnpm | |
- name: Install dependencies | |
run: npm install | |
# run: pnpm install --frozen-lockfile | |
- name: Build the package | |
run: npm run build | |
- name: Publish to NPM | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ github.ref_name }} | |
draft: true | |
# body: | | |
# Changes in this release: | |
# - New version published to npm: ${{ github.ref }} | |
files: | | |
dist/*.js | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |