Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: npm ci
- name: Build
run: npm run build
- name: 'Upload Artifact'
- name: "Upload Artifact"
uses: actions/upload-artifact@v3
with:
path: |
Expand All @@ -57,7 +57,7 @@ jobs:
needs: build
strategy:
matrix:
node: [ 16, 18, 20 ]
node: [16, 18, 20]
fail-fast: false
name: Test Node ${{ matrix.node }}
steps:
Expand Down Expand Up @@ -124,34 +124,35 @@ jobs:
test_and_contribute:
runs-on: ubuntu-latest
name: Branch protection
needs: ['test', 'lint']
needs: ["test", "lint"]
steps:
- run: true

publish:
runs-on: ubuntu-latest
name: Publish (NPM)
needs: ['build', 'test']
needs: ["build", "test"]
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
check-latest: false
registry-url: 'https://registry.npmjs.org'
- name: 'Download Artifacts'
registry-url: "https://registry.npmjs.org"
- name: "Download Artifacts"
uses: actions/download-artifact@v3
- name: Rsync Artifacts
run: rsync -a artifact/ packages
- name: Publish
run: npm run publish
env:
# ADAPTER_NEXTJS_NPM_TOKEN: ${{ secrets.ADAPTER_NEXTJS_NPM_TOKEN }}
ADAPTER_NEXTJS_NPM_TOKEN: ${{ secrets.ADAPTER_NEXTJS_NPM_TOKEN }}
ADAPTER_ANGULAR_NPM_TOKEN: ${{ secrets.ADAPTER_ANGULAR_NPM_TOKEN }}
# FIREBASE_FRAMEWORKS_NPM_TOKEN: ${{ secrets.FIREBASE_FRAMEWORKS_NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_NPM_TOKEN }}
4 changes: 2 additions & 2 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const { join } = require("path");
const { filteredLernaList, versionFromRef, shortSHA, prerelease } = require("./github.js");

const wombatDressingRoomTokens = new Map([
// Disabling this until I can get wombat access to this org
// ['firebase-frameworks', process.env.FIREBASE_FRAMEWORKS_NPM_TOKEN],
// ['@apphosting/adapter-nextjs', process.env.ADAPTER_NEXTJS_NPM_TOKEN],
["@apphosting/adapter-nextjs", process.env.ADAPTER_NEXTJS_NPM_TOKEN],
["@apphosting/adapter-angular", process.env.ADAPTER_ANGULAR_NPM_TOKEN],
]);

wombatDressingRoomTokens.forEach((token, pkg) => {
Expand Down