chore: simplify ci (#54)

This commit is contained in:
Whitewater 2022-10-25 06:28:42 -08:00 committed by GitHub
parent edaa0a5125
commit 23661b42b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View File

@ -27,10 +27,10 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v2
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- run: node scripts/module-resolve/ci.js

View File

@ -5,10 +5,8 @@ on:
inputs:
tag:
description: "Custom Tag. Set nightly-latest will publish to development."
required: false
required: true
type: string
push:
branches: [develop]
# Cancels all previous workflow runs for pull requests that have not completed.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
@ -31,10 +29,10 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v2
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- run: node scripts/module-resolve/ci.js
@ -113,7 +111,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ env.IMAGE_TAG }}
${{ inputs.tag || (github.ref_name == 'develop' && env.IMAGE_TAG_LATEST) || github.ref_name }}
${{ inputs.tag }}
- name: Build and push Docker image
uses: docker/build-push-action@v3

3
.npmrc
View File

@ -1,3 +0,0 @@
@toeverything:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
always-auth=true