Skip to content

Commit

Permalink
workflow adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Sep 8, 2024
1 parent ca4e11f commit d3f2cef
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,42 @@ jobs:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Begin CI...
uses: actions/checkout@v4

- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: 20.x
registry-url: "https://registry.npmjs.org"

- name: Use cached node_modules
uses: actions/cache@v4
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
CI: true

- name: Lint
run: yarn lint
env:
CI: true

- name: Test
run: yarn test
env:
CI: true

- name: Build
run: yarn build
env:
CI: true
- run: npm pkg set "version=${{ inputs.version }}"
- run: npm publish --provenance --tag ${{ inputs.tag }} --access public
env:
Expand Down

0 comments on commit d3f2cef

Please sign in to comment.