Skip to content

Commit

Permalink
fix: update ci and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
danocmx committed Feb 4, 2024
1 parent 8e9c5a1 commit cee2990
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,19 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
scope: "@s-tf"
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_INSTALL_TOKEN }}
node-version: '20'

- name: Install packages
run: npm ci
env:
NPM_CONFIG_USERCONFIG: .npmrc.ci
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_INSTALL_TOKEN }}

- run: npm run build
name: Build TS into JS.

- run: npm run test
name: Test function outputs.

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
20 changes: 13 additions & 7 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Github pull request
name: Github Pull Request

on:
pull_request:
Expand All @@ -8,10 +8,16 @@ jobs:
test_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm run test
node-version: 20

- name: Install packages
run: npm ci

- name: Build TS into JS.
run: npm run build

- name: Test function outputs.
run: npm run test
3 changes: 0 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cee2990

Please sign in to comment.