Skip to content

Commit

Permalink
Merge pull request #184 from awinogrodzki/canary
Browse files Browse the repository at this point in the history
1.4.5 canary release
  • Loading branch information
awinogrodzki authored May 26, 2024
2 parents 278d4d7 + 463bd5e commit dfdce01
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 1,676 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/cache@v3
with:
path: |
packages/**/lib
lib
key: ${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-${{github.sha}}
restore-keys: |
${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-
Expand Down Expand Up @@ -110,6 +110,6 @@ jobs:
uses: actions/cache@v3
with:
path: |
packages/**/lib
lib
key: ${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-${{github.sha}}
- run: yarn test
61 changes: 5 additions & 56 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,64 +66,19 @@ jobs:
uses: actions/cache@v3
with:
path: |
packages/**/lib
lib
key: ${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-${{github.sha}}
restore-keys: |
${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-
- run: yarn build

lint:
name: Lint packages
timeout-minutes: 10
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-node_modules-cache-v1-${{ hashFiles('./yarn.lock') }}-${{github.sha}}
- run: yarn lint

tests:
name: Tests
timeout-minutes: 15
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-node_modules-cache-v1-${{ hashFiles('./yarn.lock') }}-${{github.sha}}
- name: Cache build
uses: actions/cache@v3
with:
path: |
packages/**/lib
key: ${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-${{github.sha}}
- run: yarn test

semantic-release:
if: "!contains(github.event.head_commit.message, '[skip ci]')"

name: Semantic Release
runs-on: ubuntu-latest
needs:
- lint
- tests
- build
permissions:
contents: write

Expand All @@ -143,7 +98,7 @@ jobs:
uses: actions/cache@v3
with:
path: |
packages/**/lib
lib
key: ${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-${{github.sha}}
restore-keys: |
${{ runner.os }}-build-cache-v1-${{ github.ref_name }}-
Expand All @@ -159,12 +114,6 @@ jobs:
@semantic-release/git@9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish package
if: steps.semantic.outputs.new_release_published == 'true'
run: |
yarn config set version-git-tag false
yarn config set version-tag-prefix ""
yarn publish --new-version ${{ steps.semantic.outputs.new_release_version }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}


3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.env
.env.dist
examples
src
!lib
1 change: 1 addition & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- "@semantic-release/npm"
- "@semantic-release/git"
- "@semantic-release/github"

Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
## [1.4.5-canary.7](https://github.com/awinogrodzki/next-firebase-auth-edge/compare/v1.4.5-canary.6...v1.4.5-canary.7) (2024-05-26)


### Bug Fixes

* fix build cache path in github workflows ([df4c98d](https://github.com/awinogrodzki/next-firebase-auth-edge/commit/df4c98dfe7176029743a04513aa5b67c60a453a3))

## [1.4.5-canary.6](https://github.com/awinogrodzki/next-firebase-auth-edge/compare/v1.4.5-canary.5...v1.4.5-canary.6) (2024-05-26)


### Bug Fixes

* exclude lib folder from npmignore file ([f7ef2d5](https://github.com/awinogrodzki/next-firebase-auth-edge/commit/f7ef2d5249d7183f3f1204a34c540e03392943a4))

## [1.4.5-canary.5](https://github.com/awinogrodzki/next-firebase-auth-edge/compare/v1.4.5-canary.4...v1.4.5-canary.5) (2024-05-26)


### Bug Fixes

* remove tests and lint steps from semantic release pipeline ([160662d](https://github.com/awinogrodzki/next-firebase-auth-edge/commit/160662d53077e7cfdd69f194eb1d89e31a7e8d55))

## [1.4.5-canary.4](https://github.com/awinogrodzki/next-firebase-auth-edge/compare/v1.4.5-canary.3...v1.4.5-canary.4) (2024-05-26)


### Bug Fixes

* set correct pkgRoot in semantic releases configuration ([9c36948](https://github.com/awinogrodzki/next-firebase-auth-edge/commit/9c3694839088fee50e1362537cc7ad3e345d7763))

## [1.4.5-canary.2](https://github.com/awinogrodzki/next-firebase-auth-edge/compare/v1.4.5-canary.1...v1.4.5-canary.2) (2024-05-26)


### Bug Fixes

* remove .env.dist from npm package ([5c136f9](https://github.com/awinogrodzki/next-firebase-auth-edge/commit/5c136f9e2e7d2f3bc0427f21a91c7ff36a87d0d0))

## [1.4.5-canary.1](https://github.com/awinogrodzki/next-firebase-auth-edge/compare/v1.4.4...v1.4.5-canary.1) (2024-05-26)


### Bug Fixes

* /api/login endpoint now fails with 400: Missing Token error when called without credentials ([2997fc5](https://github.com/awinogrodzki/next-firebase-auth-edge/commit/2997fc51c503400fb9068750374797993f4a61d8))
* semantic release npm publish initialization ([3ed6ef5](https://github.com/awinogrodzki/next-firebase-auth-edge/commit/3ed6ef591ced2613d3936aea7dd28140605ca167))

## [1.4.4](https://github.com/awinogrodzki/next-firebase-auth-edge/compare/v1.4.3...v1.4.4) (2024-05-26)


Expand Down
2 changes: 1 addition & 1 deletion examples/next-typescript-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"firebase": "^10.4.0",
"firebase-admin": "^11.10.1",
"next": "^14.1.0",
"next-firebase-auth-edge": "1.4.3",
"next-firebase-auth-edge": "1.4.5-canary.7",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-loading-hook": "^1.0.0",
Expand Down
Loading

0 comments on commit dfdce01

Please sign in to comment.