Skip to content

Update fetchers, finish remaining methods, fix many problems #2

Update fetchers, finish remaining methods, fix many problems

Update fetchers, finish remaining methods, fix many problems #2

Workflow file for this run

name: publish
on:
push:
branches:
- 'main'
paths:
- 'src/**'
- '*.js'
- '*.json'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Use a Node.js version that supports ES Modules
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: yarn install
- name: Run Tests
run: yarn test
- name: Build Package
run: yarn build
- name: Publish to npm
id: npm_publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
if: steps.npm_publish.outputs.type != 'none' && steps.npm_publish.outputs.dry_run != true
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.npm_publish.outputs.version }}
release_name: Release v${{ steps.npm_publish.outputs.version }}
body: 'New release v${{ steps.npm_publish.outputs.version }}'
draft: false
prerelease: false