Skip to content

Commit 5bf5902

Browse files
committed
Enable trusted publishing #11936
And stop publishing on GitHub Packages because it does not provide any value
1 parent 51e2805 commit 5bf5902

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fetch-depth: 0 # Need all tags to get a version number in-between tags
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: '22'
13+
node-version: '24'
1414
cache: 'yarn'
1515
- run: yarn --frozen-lockfile
1616
- run: yarn build-demo
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: actions/setup-node@v4
2727
with:
28-
node-version: '22'
28+
node-version: '24'
2929
cache: 'yarn'
3030
- run: yarn --frozen-lockfile
3131
- run: ./node_modules/.bin/ng test angular-natural-gallery --progress false --watch=false --browsers ChromeHeadlessCustom
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@v4
3737
- uses: actions/setup-node@v4
3838
with:
39-
node-version: '22'
39+
node-version: '24'
4040
cache: 'yarn'
4141
- run: yarn --frozen-lockfile
4242
- run: yarn lint
@@ -47,7 +47,7 @@ jobs:
4747
- uses: actions/checkout@v4
4848
- uses: actions/setup-node@v4
4949
with:
50-
node-version: '22'
50+
node-version: '24'
5151
cache: 'yarn'
5252
- run: yarn --frozen-lockfile
5353
- run: ./node_modules/.bin/prettier --experimental-cli --check .
@@ -75,20 +75,9 @@ jobs:
7575
# Publish to npm
7676
- uses: actions/setup-node@v4
7777
with:
78-
node-version: '22'
78+
node-version: '24'
7979
registry-url: 'https://registry.npmjs.org'
80-
- run: npm publish --provenance --access public dist/angular-natural-gallery/
81-
env:
82-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
83-
84-
# Publish to GitHub Packages
85-
- uses: actions/setup-node@v4
86-
with:
87-
node-version: '22'
88-
registry-url: 'https://npm.pkg.github.com'
89-
- run: npm publish --provenance --access public dist/angular-natural-gallery/
90-
env:
91-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
- run: npm publish dist/angular-natural-gallery/
9281

9382
# Create release
9483
- name: Get release info

0 commit comments

Comments
 (0)