Skip to content

Commit

Permalink
ci: change release workflow to use Github Token
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelvieira committed May 19, 2023
1 parent 33e378f commit e61f55e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Release
on:
release:
types: [created]

permissions:
contents: read
packages: write
types:
- published

jobs:
build:
name: Release
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write

steps:
- name: Checkout source code
Expand All @@ -22,6 +22,8 @@ jobs:
node-version: 18
cache: yarn
cache-dependency-path: yarn.lock
registry-url: 'https://npm.pkg.github.com'
scope: '@mickaelvieira'

- name: Install dependencies
run: |
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
"name": "@mickaelvieira/opfs",
"version": "0.1.0",
"type": "module",
"main": "dist/main.js",
"repository": "https://github.com/mickaelvieira/opfs",
"main": "main.js",
"repository": {
"type": "git",
"url": "https://github.com/mickaelvieira/opfs"
},
"author": "Mickael Vieira",
"license": "MIT",
"private": false,
Expand Down

0 comments on commit e61f55e

Please sign in to comment.