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

6.1.0

6.1.0 #7

Workflow file for this run

name: GitHub Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Post Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@erffy'
- name: Setup Yarn
uses: DerYeger/yarn-setup-action@master
with:
node-version: 20
publish:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Post Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@erffy'
- name: Setup Yarn
uses: DerYeger/yarn-setup-action@master
with:
node-version: 20
- name: Setup .npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN_GITHUB }}" >> $HOME/.npmrc
- name: Install Dependencies
run: yarn install
- name: Install TypeScript & Prettier
run: npm i -g typescript prettier
- name: Build
run: yarn run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_GITHUB }}
NPM_CONFIG_REGISTRY: https://npm.pkg.github.com/
- name: Remove .npmrc
run: rm -rf $HOME/.npmrc
- name: Remove Build
run: rm -rf src