Skip to content

fix: Update GH action permissions #47

fix: Update GH action permissions

fix: Update GH action permissions #47

Workflow file for this run

on:
push:
branches:
- main
pull_request:
release:
types:
- created
name: CI
jobs:
test-node-20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: install
run: npm install
- name: build
run: make build
- name: test
run: make test
build-push:
needs: test-node-20
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: install
run: npm install
- name: build
run: make build
- name: test
run: make test
- name: Publish
uses: menduz/oddish-action@master
with:
deterministic-snapshot: true
registry-url: "https://registry.npmjs.org"
access: public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}