fix: for users using NodeNext TS Module (#50) #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# https://nodejs.org/en/about/previous-releases#release-schedule | |
node-version: [18, 20] # remember to update this when support is added/dropped | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
- run: npm run test:unit | |
- run: npm run test:integration | |
env: | |
# Credentials | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# Username | |
INT_TEST__USERNAME__USERNAME: ${{ secrets.INT_TEST__USERNAME__USERNAME }} | |
INT_TEST__USERNAME__PASSWORD: ${{ secrets.INT_TEST__USERNAME__PASSWORD }} | |
INT_TEST__USERNAME__POOL_ID: ${{ secrets.INT_TEST__USERNAME__POOL_ID }} | |
INT_TEST__USERNAME__CLIENT_ID: ${{ secrets.INT_TEST__USERNAME__CLIENT_ID }} | |
INT_TEST__USERNAME__SECRET_ID: ${{ secrets.INT_TEST__USERNAME__SECRET_ID }} | |
INT_TEST__EMAIL__USERNAME: ${{ secrets.INT_TEST__EMAIL__USERNAME }} | |
INT_TEST__EMAIL__PASSWORD: ${{ secrets.INT_TEST__EMAIL__PASSWORD }} | |
INT_TEST__EMAIL__POOL_ID: ${{ secrets.INT_TEST__EMAIL__POOL_ID }} | |
INT_TEST__EMAIL__CLIENT_ID: ${{ secrets.INT_TEST__EMAIL__CLIENT_ID }} | |
INT_TEST__EMAIL__SECRET_ID: ${{ secrets.INT_TEST__EMAIL__SECRET_ID }} | |
# Phone | |
INT_TEST__PHONE__USERNAME: ${{ secrets.INT_TEST__PHONE__USERNAME }} | |
INT_TEST__PHONE__PASSWORD: ${{ secrets.INT_TEST__PHONE__PASSWORD }} | |
INT_TEST__PHONE__POOL_ID: ${{ secrets.INT_TEST__PHONE__POOL_ID }} | |
INT_TEST__PHONE__CLIENT_ID: ${{ secrets.INT_TEST__PHONE__CLIENT_ID }} | |
INT_TEST__PHONE__SECRET_ID: ${{ secrets.INT_TEST__PHONE__SECRET_ID }} | |
github-release: | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
default-branch: main | |
release-type: node | |
- run: | | |
echo releases_created: ${{steps.release.outputs.releases_created}} | |
echo upload_url: ${{steps.release.outputs.upload_url}} | |
echo html_url: ${{steps.release.outputs.html_url}} | |
echo tag_name: ${{steps.release.outputs.tag_name}} | |
echo major: ${{steps.release.outputs.major}} | |
echo minor: ${{steps.release.outputs.minor}} | |
echo patch: ${{steps.release.outputs.patch}} | |
echo sha: ${{steps.release.outputs.sha}} | |
echo pr: ${{steps.release.outputs.pr}} | |
echo prs: ${{steps.release.outputs.prs}} | |
outputs: | |
releases_created: ${{steps.release.outputs.releases_created}} |