Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

test: create internal alpha release to troubleshoot depd #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 0 additions & 18 deletions .github/workflows/node.js.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/npm-publish.yml

This file was deleted.

88 changes: 88 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Release

on:
push:
branches:
- main
- next
- next-major
- alpha
- beta
# N.x (maintenance release branches)
- '[0-9]+.x'

concurrency:
group: release-${{ github.ref }}

env:
NODE_VERSION: 16.x

jobs:
publish:
name: publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Configure package manager
run: |
echo Configuring NPM_TOKEN globally for .npmrc
npm config set '//registry.npmjs.org/:_authToken' ${{ env.NPM_TOKEN }}
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Install dependencies
run: yarn install

- name: Test
run: yarn test

# TODO: [PLAT-1191] Re-enable once support for no comment
# - name: Report Coverage
# uses: reside-eng/code-coverage-action@v1
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build app
run: yarn build

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
branches: |
[
'+([0-9])?(.{+([0-9]),x}).x',
'main',
'next',
'next-major',
{name: 'beta', prerelease: true},
{name: 'alpha', prerelease: true}
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

notification:
if: always()
name: notification
needs: [publish]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]

- uses: technote-space/[email protected]

- uses: reside-eng/[email protected]
with:
current-status: ${{ env.WORKFLOW_CONCLUSION }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK_PLATFORM_PROD }}
github-token: ${{ secrets.GITHUB_TOKEN }}
45 changes: 45 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Verify

on:
pull_request:
branches:
- main

concurrency:
group: verify-${{ github.head_ref }}
cancel-in-progress: true

env:
NODE_VERSION: 14.x

jobs:
build:
name: build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/[email protected]

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Configure package manager
run: |
echo Configuring NPM_TOKEN globally for .npmrc
npm config set '//registry.npmjs.org/:_authToken' ${{ env.NPM_TOKEN }}
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_READ_TOKEN }}

- name: Install dependencies
run: yarn install

- name: Test
run: yarn test

- name: Build app
run: yarn build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-firebase-auth",
"version": "0.14.3-alpha.0",
"name": "@side/next-firebase-auth",
"version": "0.0.0-development",
"description": "Simple Firebase authentication for all Next.js rendering strategies",
"keywords": [
"Next",
Expand Down