Skip to content

Commit

Permalink
Fix route registration
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Jun 17, 2024
1 parent 021a297 commit e93663d
Show file tree
Hide file tree
Showing 8 changed files with 10,928 additions and 6,044 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
push:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "npm"

- run: npm install --frozen-lockfile
- run: npm run build
- run: npm run test
43 changes: 23 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
name: Release & Publish

name: Publish
on:
push:
tags:
- 'v*'
branches:
- "**"

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v4
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "npm"

- run: npm install --frozen-lockfile
- run: npm run build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Set RELEASE_VERSION
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Apply new version
run: node config/preparePublish.mjs
- name: Install modules
run: npm install
- name: Build
run: npm run build
- name: Publish to npm
run: npm publish --access public
publish: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.WRANGLER_PUBLISHER_NPM_TOKEN }}
39 changes: 0 additions & 39 deletions .github/workflows/test.yml

This file was deleted.

Loading

0 comments on commit e93663d

Please sign in to comment.