Skip to content

Commit 7d06c88

Browse files
committed
remove pins for first party github actions becaus they keep deleting old versions for some insane reason, which makes pinning completely pointless
1 parent d603f31 commit 7d06c88

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/test and publish.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ jobs:
55
build-and-test:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
9-
- uses: actions/setup-node@v3
8+
- uses: actions/checkout@main
9+
- uses: actions/setup-node@main
1010
with:
1111
node-version: 16.9.1
1212
- run: npm ci
1313
- run: npm run build
1414
- run: npm run format:check
1515
- run: npm run lint:check
16-
- uses: actions/upload-artifact@v2
16+
- uses: actions/upload-artifact@main
1717
with:
1818
name: build
1919
path: index.js
@@ -24,16 +24,16 @@ jobs:
2424
runs-on: ubuntu-latest
2525
needs: build-and-test
2626
steps:
27-
- uses: actions/checkout@v1
28-
- uses: actions/setup-node@v3
27+
- uses: actions/checkout@main
28+
- uses: actions/setup-node@main
2929
with:
3030
node-version: 16.9.1
3131
- run: echo ::set-output name=CURRENT_VERSION::$(node -p "require(\"./package.json\").version")
3232
id: current-version
3333
- if: github.ref == 'refs/heads/master'
3434
run: echo ::set-output name=VERSION_INFO::$(npm view $(node -p "require(\"./package.json\").name")@=${{ steps.current-version.outputs.CURRENT_VERSION }})
3535
id: version-was-changed
36-
- uses: actions/download-artifact@v2
36+
- uses: actions/download-artifact@main
3737
# need to publish if the branch isn't master, or it is master and the version in package.json hasn't been published yet
3838
if: github.ref != 'refs/heads/master' || steps.version-was-changed.outputs.VERSION_INFO == ''
3939
with:

0 commit comments

Comments
 (0)