馃殌 chore(package.json): add mime and @types/mime dependencies #20
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 Package | |
on: | |
push: | |
tags: | |
- "v*" # Push events to matching v*, i.e. v0.1 | |
jobs: | |
publish: | |
# prevents this action from running on forks | |
if: github.repository == 'ferdiunal/vite-cdn-uploader' | |
runs-on: ubuntu-latest | |
environment: Release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set node version to 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
registry-url: https://registry.npmjs.org/ | |
cache: "npm" | |
- name: Install deps | |
run: npm install && npm run build | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" | |
- name: Publish package | |
run: npm run publish ${{ github.ref_name }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |